Excel table formula help
#1
Thread Starter
I don't have a Ferrari in
Joined: May 2004
Posts: 3,437
Likes: 2
From: Southern California
Excel table formula help
C7p6w.jpg
I'm trying to get the Cumulative Column to run a continuous total and I'm able to get it to work assuming there are no blank rows. As soon as there is a blank row, the formula goes to shits. I'd like both the Total and Cumulative column to return null cells if there are no numbers, but if there is a completely empty row, is there a way to make the Cumulative column search vertically in the column to continue adding?
My current formulas (I know they are not elegant, I suck...)
For Total: =IF(SUM(C3:E3)>0,SUM(C3:E3),"") [This would be for Cell F3]
For Cumulative: =IF(F3="","",IF(F3>0,(F3+G2),)) [This would be for Cell G3]
If I skip a line, I get the #VALUE! error. Any ideas?
I'm trying to get the Cumulative Column to run a continuous total and I'm able to get it to work assuming there are no blank rows. As soon as there is a blank row, the formula goes to shits. I'd like both the Total and Cumulative column to return null cells if there are no numbers, but if there is a completely empty row, is there a way to make the Cumulative column search vertically in the column to continue adding?
My current formulas (I know they are not elegant, I suck...)
For Total: =IF(SUM(C3:E3)>0,SUM(C3:E3),"") [This would be for Cell F3]
For Cumulative: =IF(F3="","",IF(F3>0,(F3+G2),)) [This would be for Cell G3]
If I skip a line, I get the #VALUE! error. Any ideas?
#4
Get rid of them and replace them with these simple formulas:
Total: =SUM(C2:E2) and fill down
Cumulative: =SUM(F$2:F2) and fill down
Go to Excel Options->Advanced, under the "Display Options for this Worksheet", uncheck "Show a zero in cells that have zero value".
#5
What they said.
Think of this way: If you have a blank row, the value for that day is "0". Your cumulative amount, including that day, is the previous cumulative amount + 0.
IOW - just let the cumulative amount tally on those blank rows.
Think of this way: If you have a blank row, the value for that day is "0". Your cumulative amount, including that day, is the previous cumulative amount + 0.
IOW - just let the cumulative amount tally on those blank rows.
#6
What they said too.
I think the #Value is coming from not setting a value if F3<=0:
IF(F3="","",IF(F3>0,(F3+G2),))
Because you are triggering that condition, which is leaving some null value in G6 and then you're trying to add it in G7. If you did this:
IF(F3="","",IF(F3>0,(F3+G2),0))
It would work, but you'd have a zero in the cell.
I think the #Value is coming from not setting a value if F3<=0:
IF(F3="","",IF(F3>0,(F3+G2),))
Because you are triggering that condition, which is leaving some null value in G6 and then you're trying to add it in G7. If you did this:
IF(F3="","",IF(F3>0,(F3+G2),0))
It would work, but you'd have a zero in the cell.
#7
What they said too.
I think the #Value is coming from not setting a value if F3<=0:
IF(F3="","",IF(F3>0,(F3+G2),))
Because you are triggering that condition, which is leaving some null value in G6 and then you're trying to add it in G7. If you did this:
IF(F3="","",IF(F3>0,(F3+G2),0))
It would work, but you'd have a zero in the cell.
I think the #Value is coming from not setting a value if F3<=0:
IF(F3="","",IF(F3>0,(F3+G2),))
Because you are triggering that condition, which is leaving some null value in G6 and then you're trying to add it in G7. If you did this:
IF(F3="","",IF(F3>0,(F3+G2),0))
It would work, but you'd have a zero in the cell.
I just went through an extensive redesign of a large spreadsheet to eliminate this very problem.
Trending Topics
#8
Thread Starter
I don't have a Ferrari in
Joined: May 2004
Posts: 3,437
Likes: 2
From: Southern California
The SUM formula worked perfectly. I think I was thinking too hard about how to make the table work. Its much simpler than what I originally had in mind.
I ended up using this in G2 and dragged down.
=IF(F2="","",SUM($F$2:F2))
The problem with unchecking the show zeroes option is that I'm not sure if it would show up when I send the spreadsheet out.
Y'all are some Excel pros
I ended up using this in G2 and dragged down.
=IF(F2="","",SUM($F$2:F2))
The problem with unchecking the show zeroes option is that I'm not sure if it would show up when I send the spreadsheet out.
Y'all are some Excel pros
#9
#10
The SUM formula worked perfectly. I think I was thinking too hard about how to make the table work. Its much simpler than what I originally had in mind.
I ended up using this in G2 and dragged down.
=IF(F2="","",SUM($F$2:F2))
The problem with unchecking the show zeroes option is that I'm not sure if it would show up when I send the spreadsheet out.
Y'all are some Excel pros
I ended up using this in G2 and dragged down.
=IF(F2="","",SUM($F$2:F2))
The problem with unchecking the show zeroes option is that I'm not sure if it would show up when I send the spreadsheet out.
Y'all are some Excel pros
Thread
Thread Starter
Forum
Replies
Last Post
08_UA7_Gr33k
Member Cars for Sale
13
02-11-2016 03:17 PM
InFaMouSLink
Non-Automotive & Motorcycle Sales
2
11-11-2015 01:19 PM
InFaMouSLink
Car Parts for Sale
6
10-27-2015 07:52 PM
08_UA7_Gr33k
Member Cars for Sale
1
09-27-2015 02:56 PM