# Sum a range of cells??

#### JJT

##### New Member
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.

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

#### Juan Pablo González

##### MrExcel MVP
Try something like

=SUMIF(A1:A10,"<>#N/A")

#### JJT

##### New Member
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
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.

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

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

Bill

##### MrExcel MVP
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.

=MAX(IF(ISNA(C7:C12),0,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.

Replies
3
Views
86
Replies
1
Views
70
Replies
2
Views
130
Replies
5
Views
229
Replies
0
Views
71

1,186,807
Messages
5,959,923
Members
438,454
Latest member
leopedrini

### 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.

### Which adblocker are you using?

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

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