Dragging Formulas

dawsman

Board Regular
Joined
Jul 20, 2010
Messages
55
I am looking to sum two cells on one workbook and then be able to drag the formula down, but the workbook im summing the data from goes across vertically.

So when I drag down I get:
=A1+A20
=A2+A21
=A3+A22

When what I really want is:
=A1+A20
=B1+B20
=C1+C20

Cant figure out how to do this :confused:
 
It can be resolved, but will make the formula more cumbersome.
You have to decide if the likeliness of that occurance is worth the extra work to account for it.

If so, do you need to test if EITHER cell is empty, or only if BOTH are empty?

In other words, if only 1 cell is blank, do you still want to do the math (blank + 10 = 10)
Or should the math be done ONLY if BOTH cells contain numeric values ?
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
This will return "" if BOTH cells are empty.
=IF(COUNT(INDEX($1:$1,ROWS($1:1)),INDEX($20:$20,ROWS($1:1)))=0,"",INDEX($1:$1,ROWS($1:1))+INDEX($20:$20,ROWS($1:1)))

This will return "" if EITHER cell is empty
=IF(COUNT(INDEX($1:$1,ROWS($1:1)),INDEX($20:$20,ROWS($1:1)))<2,"",INDEX($1:$1,ROWS($1:1))+INDEX($20:$20,ROWS($1:1)))
 
Upvote 0

Forum statistics

Threads
1,216,583
Messages
6,131,557
Members
449,655
Latest member
Anil K Sonawane

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top