IF And False then next row

mardimus

New Member
Joined
Feb 2, 2015
Messages
21
I have a table of data:


Value

Function

ID
Current Returned List
Expected Returned List
3
Create
1000
1000
1000
2
Do Not Create
1200
1111
3
Create
1111
1111
1456
1
Do Not Create
2222
2
Create
3333
3
Do Not Create
4444
3
Create
1456
1456

<tbody>
</tbody>


The objective: is to check if column A has a value of 3 andthen if B has text “Create” and then list the ID in order with no blanks inbetween (rows), a list of True values, skipping False.

My current formula works but displays blanks:=IF(AND(A:A=3,B:B=”Create”),C2,””)

Thanks for your help!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Excel 2010
ABCDE
1ValueFunctionIDExpected Returned List
23Create10001000
32Do Not Create12001111
43Create11111456
51Do Not Create2222
62Create3333
73Do Not Create4444
83Create1456
Sheet2
Cell Formulas
RangeFormula
E2{=INDEX($C$1:$C$8,SMALL(IF($A$2:$A$8=3,IF($B$2:$B$8="Create",ROW($C$2:$C$8))),ROW(A1)))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Assuming data in A1:C8, headers in row 1, try

Array formula in D2 copied down
=IFERROR(INDEX($C$2:$C$8,SMALL(IF(A$2:A$8=3,IF(B$2:B$8="Create",ROW(C$2:C$8)-ROW(C$2)+1)),ROWS(D$2:D2))),"")
confirmed with Ctrl+Shift+Enter, not just Enter

M.
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,342
Members
449,505
Latest member
Alan the procrastinator

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