Front Office Football Central  

Go Back   Front Office Football Central > Main Forums > Off Topic
Register FAQ Members List Calendar Mark Forums Read Statistics

Reply
 
Thread Tools
Old 09-11-2011, 11:46 AM   #1
Racer
College Benchwarmer
 
Join Date: Oct 2000
Location: Fort Wayne, Indiana
Excel Questions Thread

When a copying a formula left to right, how do you make it so that

=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A3)

goes to

=SUMIFS(Data!$F:$F,Data!$B:$B,$A3,Data!$D:$D,A4)

If I do $A3 or $A$3, the part in bold stays at A3 when copying from left to right. If I do A$3 or A3 the part in bold goes to B3, C3, D3, etc. when copying from left to right. Everything else is working how I want it to.

I could do it manually in a 2 or 3 minutes but it's for an Excel VBA class I'm taking so I have to write a Macro that does it. Thanks.

Racer is offline   Reply With Quote
Old 09-11-2011, 12:31 PM   #2
Bobble
College Prospect
 
Join Date: Nov 2006
Location: High and outside
Until someone smarter comes along....

I'd do it with OFFSET and COLUMNS functions (offset from the starting cell by the value from the current column) -- that wouldn't really be a macro, though.
Bobble is offline   Reply With Quote
Old 09-11-2011, 01:01 PM   #3
CU Tiger
Grizzled Veteran
 
Join Date: Nov 2006
Location: Backwoods, SC
$A3 should work...since it doesn't, I'd probably do 2 cells highlight them both and bucket handle it to the right.
CU Tiger is offline   Reply With Quote
Old 09-11-2011, 05:59 PM   #4
SteveMax58
College Starter
 
Join Date: Dec 2006
Yeah, what Bobble said is the only way you can do it with a formula.

Dragging right increments Columns ONLY, as dragging down increments Rows ONLY (pending the use of $ to say "no, dont increment that").
SteveMax58 is offline   Reply With Quote
Old 09-11-2011, 07:19 PM   #5
Racer
College Benchwarmer
 
Join Date: Oct 2000
Location: Fort Wayne, Indiana
How would I adjust those formulas using the offset function? (I do have everything else in my macro working properly now. My first legit macro ever. )
Racer is offline   Reply With Quote
Old 09-11-2011, 09:47 PM   #6
Racer
College Benchwarmer
 
Join Date: Oct 2000
Location: Fort Wayne, Indiana
I just ended up writing a loop that recreated the numbers on a separate sheet in a manner where I could get the formula to calculate properly.
Racer is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT -5. The time now is 05:46 PM.



Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.