Copy from one sheet to another baed on an IF AND OR

swingline

New Member
Joined
Oct 29, 2019
Messages
15
I'm not sure if what I'm asking is possible to accomplish with excel. But what I would like to do is on sheet one copy list names that meet specific criteria based on IF AND OR of contents of columns next to their names.

NameYNMYES
jim11y
jeff1y
bill1n
sam1y
doug1y

<tbody>
</tbody>

So the idea is that the columns to the right of the names are in order of priority between Y, N, M values from the name column would be copied onto another sheet, and if the YES column has an "n" that row can be ignored. Below would be the expected results, the name list is dynamic, but the columns and their order of priority are static.


ynm
jimsamdoug
jeff

<tbody>
</tbody>
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
You dont want jim appearing in column m before doug even though he has 1 in column M and a y in Yes?

Shame, otherwise this would work.

With jim in A2
in F2
=IFERROR(INDEX($A$2:$A$6,AGGREGATE(15,6,ROW($A$2:$A$6)/((B$2:B$6=1)*($E$2:$E$6="y")),ROWS(A$2:A2))-(2-1),1),"")
copy down and across to H6

Only difference from your output is in the m column jim appears before doug
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,416
Messages
6,119,384
Members
448,889
Latest member
TS_711

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