if or filter or any other formula/code

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi All,

Thanks in advance, we have the following sheet

Item CodeWork 1Work 2Work 3Work 4
P-1P-2P-3P-1P-2P-3P-1P-2P-3P-1P-2P-3
A-405fsxvxv
A-820fdsfdfdfokvxvx
A-440fdsffdsokvxvxfsdssfokfdaf
A-650vxvvxvokxcvvgsdsokvcxxvvxcokgdg
A-260cxzccxok vcxvxvxcok cvvvxcvokdgdggdgdgok


and want to do following work

Process - In a new sheet we want to check only work which is not done, we mean

1. We will check first "Work 1" done or not, you can see that D3 is not o.k., so it will show in new sheet with item code
2. if work 1 done than We will check second "Work 2" done or not, you can see that G4 is not o.k., so it will show in new sheet with item code
3. if work 1 and work 2 done than We will check second "Work 3" done or not, you can see that J5 is not o.k., so it will show in new sheet with item code
4. if work 1, work2 and work 3 done than We will check second "Work 4" done or not, you can see that M6 is not o.k., so it will show in new sheet with item code

i have the headings work 1 to Work 25, how can we do that, help pls

Sample result is
Item Code
A-405Work 1 - Pendingor we can show the value B3 here
A-820Work 2 - Pendingor we can show the value E4 here
A-440Work 3 - Pendingor we can show the value H5 here
A-650Work 4 - Pendingor we can show the value K6 here


can we do this through formula, if not then code pls,
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Just for your reference:
MrExcel.xlsx
ABCDEFGHIJKLM
1Item CodeWork 1Work 2Work 3Work 4
2P-1P-2P-3P-1P-2P-3P-1P-2P-3P-1P-2P-3
3A-405fsxvxv
4A-820fdsfdfdfokvxvx
5A-440fdsffdsokvxvxfsdssfokfdaf
6A-650vxvvxvokxcvvgsdsokvcxxvvxcokgdg
7A-260cxzccxok vcxvxvxcok cvvvxcvokdgdggdgdgok
8
9Item CodeStatus
10A-405Work 1 - Pending
11A-820Work 2 - Pending
12A-440Work 3 - Pending
13A-650Work 4 - Pending
Sheet1
Cell Formulas
RangeFormula
A10:A13A10=IF(M3="",A3,"")
B10:B13B10=IF(A10="","",INDEX($1:$1,MIN(IF((B3:M3="")*(B$2:M$2="P-3"),COLUMN(B:M)))-2)&" - Pending")
Press CTRL+SHIFT+ENTER to enter array formulas.


Above formula will leave blanks for some cases:
1593189391328.png
 
Upvote 0
U have updated this for Till column M, but we need to this till column nd

In that case what modifications required, guide pls
 
Upvote 0
=IF(A10="","",INDEX($1:$1,MIN(IF((B3:nd3="")*(B$2:nd$2="P-3"),COLUMN(B:nd)))-2)&" - Pending")
 
Upvote 0
Hi shaowu459,

we are facing one problem and that is when all cells are filled except G3, below formula is not working

=IF(M3="",A3,"")

so for getting the value from A column, pls suggest some other formula or modify current formula, basically we can check any one condition from here
=if(column C, F, I, L have any blank cell then we will get the value here)
or
=if(column D, G, J, M have any blank cell then we will get the value here)
or
=if(column B have value and C is blank / column E have value and F is blank / column H have value and I / column K have value and L is blank is blank) then we will get the value here)
 
Upvote 0
one more criteria we are adding for calculation A10, it will check =IF(M3:M="",A3:A,"") and return value only who can pass
 
Upvote 0
How about this one?
MrExcel.xlsx
ABCDEFGHIJKLM
1Item CodeWork 1Work 2Work 3Work 4
2P-1P-2P-3P-1P-2P-3P-1P-2P-3P-1P-2P-3
3A-405fsxvxv
4A-820fdsfdfdfokvxvxAAAAAAAOK
5A-440fdsffdsokvxvxfsdssfokfdaf
6A-650vxvvxvokxcvvgsdsokvcxxvvxcokgdg
7A-260cxzccxok vcxvxvxcok cvvvxcvokdgdggdgdgok
8
9Item CodeStatus
10A-405Work 1 - Pending
11  
12A-440Work 3 - Pending
13A-650Work 4 - Pending
Sheet1
Cell Formulas
RangeFormula
A10:A13A10=IF(B10="","",A3)
B10:B13B10=IFERROR(INDEX($1:$1,MIN(IF((B3:ND3="")*(B$2:ND$2="P-3"),COLUMN(B:ND)))-2)&" - Pending","")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
MrExcel.xlsx
ABCDEFGHIJKLM
1Item CodeWork 1Work 2Work 3Work 4
2P-1P-2P-3P-1P-2P-3P-1P-2P-3P-1P-2P-3
3A-405fseexvxvBBBBBBBOK
4A-820fdsfdfdfokvxvxAAAAAAAOK
5A-440fdsffdsokvxvxfsdssfokfdaf
6A-650vxvvxvokxcvvgsdsokvcxxvvxcokgdg
7A-260cxzccxok vcxvxvxcok cvvvxcvokdgdggdgdgok
8
9Item CodeStatus
10A-405Work 1 - Pending
11  
12A-440Work 3 - Pending
13A-650Work 4 - Pending
Sheet1
Cell Formulas
RangeFormula
A10:A13A10=IF(B10="","",A3)
B10:B13B10=IFERROR(INDEX($1:$1,MIN(IF((B3:ND3="")*(B$2:ND$2="P-3"),COLUMN(B:ND)))-2)&" - Pending","")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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