Determine FIRST ROW in Range based on Criteria

JayB0730

Board Regular
Joined
Oct 22, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to come up with a formula that returns the specific ROW in a range where either Column A = "FALSE" or ISBLANK AND Column B = ISBLANK.
This new formula would appear in C1.

GOAL - This formula will help me determine the first row in the range that needs attention. If there are subsequent rows, the formula would automatically update after said row is fixed.

TIA

-J
 
Last edited:

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
When you say ISBLANK do you mean an empty cell or/and cells containing the null text string ("")?
 
Upvote 0
Assuming that it's really a blank string, I think the following could work:


ABCD
36TRUExAnswer:38
37FALSEx
38FALSE
39TRUE
40
41TRUE

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Summary

Worksheet Formulas
CellFormula
D36=AGGREGATE(15,6,ROW(A36:A41)/IF((((A36:A41=FALSE)+(ISBLANK(A36:A41)))*(ISBLANK(B36:B41)))>0,1,0),1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

In the formula:
Boolean logic (plus and multiply) is used to determine the rows that meet the criteria
The rest are errors due to divide by zero
The AGGREGATE function is used to pick the SMALLest number that is not an error
 
Last edited:
Upvote 0
Assuming ISBLANK means null string "", try this.

Confirm with Ctrl+Shift+Enter
=MATCH(1,1/(((A1:A1000=FALSE)+(A1:A1000=""))*(B1:B1000="")),0)
 
Upvote 0
I like AlphaFrog's better than mine...much more compact. The only thing mine has going for it is that it's not an array formula...
 
Upvote 0
Assuming ISBLANK means null string "", try this.

Confirm with Ctrl+Shift+Enter
=MATCH(1,1/(((A1:A1000=FALSE)+(A1:A1000=""))*(B1:B1000="")),0)

Worked like a charm! And yes it was "" not ISBLANK, my apologies. Thank you!
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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