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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

JJT

New Member
Joined
Jan 8, 2004
Messages
8
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?
 

berg891832

Well-known Member
Joined
May 2, 2002
Messages
509
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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.
 
Learn Excel from Bill Jelen

Understanding data is crucial, and the easiest place to start is with Microsoft Excel.

Forum statistics

Threads
1,151,490
Messages
5,764,671
Members
425,229
Latest member
Rashid mahmood

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
Top