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
 
Then MAX is not really returning the correct value either. If they are text and both set to 1, MAX will still return 0
You could use either of these
Excel Formula:
=SUM(J64:N64)+MAX(--H64:I64)
Excel Formula:
=SUM(J64:N64)+LARGE(--H64:I64,1)
 
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Then MAX is not really returning the correct value either. If they are text and both set to 1, MAX will still return 0
You could use either of these
Excel Formula:
=SUM(J64:N64)+MAX(--H64:I64)
Excel Formula:
=SUM(J64:N64)+LARGE(--H64:I64,1)
OK thanks Peter this worked.
 
Upvote 0
Get rid of the quotation marks around your 0, it is forcing it to return a text string 0
Rich (BB code):
=IFERROR(VLOOKUP(A64,'MON 26-5-24'!A:N,14,FALSE),0)
 
Upvote 0
Then MAX is not really returning the correct value either
If LARGE was working other than for 0, then other numbers had to be numbers. (as confirmed by the later post) :)
 
Upvote 0
If LARGE was working other than for 0, then other numbers had to be numbers. (as confirmed by the later post) :)
I don't think it was stated anywhere that it was working for other numbers & the subsequent confirmation "using MAX worked" could still have been referring to when the cells contained 0 since that was the circumstance of the original question.
Never-the-less I should have said "MAX may not be returning the correct value"
 
Upvote 0

Forum statistics

Threads
1,215,090
Messages
6,123,061
Members
449,091
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