How to get the first "true" value as the output of an IF array function?

Rnkhch

Well-known Member
Joined
Apr 28, 2018
Messages
528
Office Version
  1. 365
Platform
  1. Windows
Hello,

Finally after a lot of attempts, I managed to write an IF array formula that correctly does the analysis I wanted as shown in the figure below:

1575254521501.png


But sadly, it shows blank :eek: after hitting cntrl+shift+enter which I think is because the first result in the array is FALSE.

However, my intention for the formula was to show the first TRUE result which is "3", and only show blank if all results were FALSE. So, what is the general trick in the syntax of an IF array function to make it show the first TRUE result?

Thanks for any input!!!

P.S. My actual formula is extremely complicated and ugly ? but I can post it if needed. But hopefully the concept can be illustrated with any simple IF array function of the responder's choice.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
We cannot know if there is another solution alternative.
To help with another alternative, the explanation of your data, the conditions and the result you need are necessary.

But try the following:

=SMALL(your_formula, 1)

Remember to press Control + Shift + Enter
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,981
Members
448,934
Latest member
audette89

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