Total of col with N/A's

Doug Jefferson

Board Regular
Joined
Nov 4, 2010
Messages
60
I need to have totals for a number of col's that need to show #n/a and not a 0 or a 0.00

Example:

UC Units Amount
A1 5 10.00
A2 2 2.00
A3 #N/A #N/A
B5 3 15.00

Tot: 10 22.00

Normally I could change the #N/A to an amount via an if statement, but I have to show the #N/A in the detail.

thank you for your help.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I need to have totals for a number of col's that need to show #n/a and not a 0 or a 0.00

Example:

UC Units Amount
A1 5 10.00
A2 2 2.00
A3 #N/A #N/A
B5 3 15.00

Tot: 10 22.00

Normally I could change the #N/A to an amount via an if statement, but I have to show the #N/A in the detail.

thank you for your help.
Try this...

Book1
ABC
1UCUnitsAmount
2A1510
3A222
4A3#N/A#N/A
5B5315
6Totals1027
Sheet1

Formula entered in B6 and copied across:

=SUMIF(B2:B5,"<1E100")
 
Upvote 0
I just attempted both formulas and the 1st one returned 0 back as the result. The 2nd formula returns an error, It looks like part of the logic is missing since it has an uneven number of ( and ) in the formula.

I am not sure what the Control + Shift+Enter comment is for in the post?

Thank you.
 
Upvote 0
I tried Aladdin's first formula, and it worked perfectly for me. Can you post your adaption of the formula?

In the second one, Control + Shift + Enter means that when you enter (type) the formula in, when you are finished you must hit "Control + Shift + Enter" (all three keys) at the same time instead of just entering the formula with the "Enter" key.
 
Upvote 0
I just attempted both formulas and the 1st one returned 0 back as the result. The 2nd formula returns an error, It looks like part of the logic is missing since it has an uneven number of ( and ) in the formula.

I am not sure what the Control + Shift+Enter comment is for in the post?

Thank you.
You don't need all that over-complication.

See my other reply.
 
Upvote 0
I just tried the =sumif(B1: B3,"<1E100") and it returned the correct amount. I am not sure what the "<1E100" part of the formula does?

Thank everyone for their assistance on this.
 
Upvote 0
Joe,

I understand what you mean by hitting all 3 keys at the same time but I am not familiar with how this ties into a formula; I assume it makes Excel treat it differently?
 
Upvote 0
I just tried the =sumif(B1: B3,"<1E100") and it returned the correct amount. I am not sure what the "<1E100" part of the formula does?

Thank everyone for their assistance on this.
1E100 is scientific notation, a "shorthand" method for writing very large numbers.

1E100 represents the number 1 followed by 100 zeros.

In plain English the formula is "saying":

Sum the numbers in the range if they are less than the very large number 1 followed by 100 zeros.

There is a 100% chance that the numbers in the range will be less than 1 followed by 100 zeros so we get the sum result we expect. In this application the #N/A errors are ignored.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,682
Members
452,937
Latest member
Bhg1984

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