#1
|
|||
|
|||
Count if another cell is blank
Hello,
I have a spreadsheet with a running total and would like to count a sum only if there is an invoice number to the right of the cell. I have attached the worksheet for you to see what I have created. I also am having trouble grouping each month, I have subtotalled but although the calculations are correct, when I try to reduce the months down to just the total per month, it does not reduce all the dates. I would appreciate your help. If I am only meant to ask one question per post, the first is priority. Thanks |
#2
|
||||
|
||||
You could insert the following formula into C7 and copy down as far as needed:
=IF(E7<>0,$H$1*(ROW()-MATCH("*",B$1:B6,-1)-1),"")
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Hi Paul,
This formula works great up until cell C14 but does not carry down to the other totals, i.e. C32 & C47. I have tried to make a few minor changes to the formula but can't seem to get it to work. Any ideas? Thanks |
#4
|
||||
|
||||
As written the formula looks for an invoice amount in column E. I mis-read your requirements. To have it for an invoice # in column D, use:
=IF(D7<>0,$H$1*(ROW()-MATCH("*",B$1:B6,-1)-1),"")
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Worked lovely, thanks :-)
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formulato say if cell is blank do this, if not blank do this. | mbesspiata | Excel | 1 | 01-17-2015 05:02 AM |
How do you count how often a specific value occurs in single changing cell? | blackjack | Excel | 12 | 09-03-2014 10:41 AM |
compare, match and count cell contents between sheets | bobsone1 | Excel | 11 | 08-07-2014 10:34 PM |
won't show blank cell | bhum | Excel | 2 | 01-28-2014 02:34 AM |
How to count multiple values in a single cell, except zero? | iuliandonici | Excel | 1 | 04-13-2011 09:45 PM |