Sum a range of cells??

JJT

New Member
Joined
Jan 8, 2004
Messages
8
Cell 1 = Number
Cell 2 = Number
Cell 3 = "#N/A"
Cell 4 = sum(cell1:cell3)

My 'sum' result in Cell 4 = #N/A
I want Cell 4 to = Cell 1 + Cell 2

I am trying to sum just the numbers and avoid the #N/A character in my summation....how can I do this.

Please help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Thanks.....that works......

I have another one for you...similar question:

I need to find the largest number in a range
I use =LARGE(A1:A10,1)
but if "#N/A" is in any of those cells, it give me a response of #N/A.........how can I not have that happen?
 
Upvote 0
1st, use the MAX function instead of LARGE if you want to just find the highest value. Two keystrokes less anyway.

=MAX(A1:A10) finds the highest number.

here is your formula:

=MAX(IF(ISNA(C7:C12),0,C7:C12))

Of course enter your ranges instead of c7:c12.

Enter this formula as an ARRAY. in other words, after typing the formula, hit CTRL+SHIFT+ENTER.

Bill
 
Upvote 0
berg891832 said:
1st, use the MAX function instead of LARGE if you want to just find the highest value. Two keystrokes less anyway.

=MAX(A1:A10) finds the highest number.

here is your formula:

=MAX(IF(ISNA(C7:C12),0,C7:C12))

Of course enter your ranges instead of c7:c12.

Enter this formula as an ARRAY. in other words, after typing the formula, hit CTRL+SHIFT+ENTER.

Bill

Quite. An error-ridden range provokes expensive calculations. The OP should consider suppressing #N/A and use ordinary formulas.
 
Upvote 0

Forum statistics

Threads
1,213,520
Messages
6,114,099
Members
448,548
Latest member
harryls

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