Help IF function bug

Thomasla

New Member
Joined
Mar 20, 2019
Messages
2
Hi guys,


First of all, thank you for all the content you can find on this site and for the help you provide.

I publish today because recently I have a unexplainable problem on excel:

For 1 month, I have been working on a file where I mainly use IF / Large Functions. My formulas worked very well, but since 1 week it doesn't work anymore. Do you know if there was an update on the function or had you already encountered the problem?

Here is an example of a formula that worked 2 weeks ago and now nothing more. The objective of the formula is to show the maximum number that the first name Paul can have in the table. The “if“ function no longer works as before, i dont understand. The result has to be 6 but it shows 0….

Thank you in advance, and I remain at your disposal if you need more information

Cheers



[TABLE="width: 500"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Number[/TD]
[TD]Top[/TD]
[TD]Name[/TD]
[TD]Result[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]Paul[/TD]
[TD]=LARGE(IF(A2:A6=D2;B2:B6);C2)[/TD]
[/TR]
[TR]
[TD]Chef[/TD]
[TD]2
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chef[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chef[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]6[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the Board. Indeed, there is a lot of good information and helpful people here.

My first thought is that your formula is an array formula. This requires you to press Control+Shift+Enter when you enter the formula. Did you somehow update the formula and not press CSE? Try selecting the cell with the formula, press F2 to edit it, then hold down the Control and Shift keys, and press Enter. Let us know if that works.
 
Upvote 0
Welcome to the Board. Indeed, there is a lot of good information and helpful people here.

My first thought is that your formula is an array formula. This requires you to press Control+Shift+Enter when you enter the formula. Did you somehow update the formula and not press CSE? Try selecting the cell with the formula, press F2 to edit it, then hold down the Control and Shift keys, and press Enter. Let us know if that works.


Thanks a ton, quick and effective
 
Upvote 0
I agree with Eric W - youi have probably turned it into a normal formula. This alternative formula (also an array formula) would do the same for you: =MAX(IF(A2:A6=D2,B2:B6),C2)
Enter it in the cell and then press ctrl-shift-enter.
 
Upvote 0
If you have Office 365, there is a non-array function you can use:

=MAXIFS(B:B;A:A;D2)

There's a MINIFS too. But there isn't a LARGEIFS function, you if you want the second largest, you'd have to go back to the array formula. In any case, glad we could help.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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