Handling =LARGE Datasets with Zero values

NigelPatrick

New Member
Joined
Dec 8, 2023
Messages
6
Office Version
  1. 2021
Platform
  1. Windows
Hi all.
I have a function as follows =(SUM(J64:N64)+LARGE(H64:I64,1))

That returns a #NUM! error because H64 and I64 both contain a value of 0 (Zero). However Zero is a valid value so how do I change this formula to return the sum of J64:N64 plus Zero?

Thanks in advance
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If large is giving an error then H64 & I64 do not contain numbers. They are either text or blank
 
Upvote 0
If they both have 0, LARGE should return 0. If they are both empty, then you would get an error, but you could just use MAX instead.
 
Upvote 0
The cell format is irrelevant, what do you get with
Excel Formula:
=isnumber(H64)
& the same for I64
 
Upvote 0
If they both have 0, LARGE should return 0. If they are both empty, then you would get an error, but you could just use MAX instead.
Thanks using MAX worked. Obviously only would be a valid solution when I am looking for the highest 1 value in a range, but thanks you have me sorted for now.
 
Upvote 0
There's your problem then - they are not numbers.
 
Upvote 0
In that case they are text & not numbers.
 
Upvote 0

Forum statistics

Threads
1,215,084
Messages
6,123,028
Members
449,092
Latest member
ikke

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