Transpose data to new sheet

Jezza25

New Member
Joined
Jan 29, 2011
Messages
16
Hi All,

I have 2 sheets on the first sheet is the following first 3 columns

1. Apple Yes
2. Banana
3. Pear Yes
4. Lemon Yes
5. Grape
6. Orange Yes

What I am looking for is on the second sheet I need a formula to only bring in the ones that have a Yes next to them so the second sheet would have the following in the first 4 rows

1. Apple
3. Pear
4. Lemon
6. Orange

thanks

Jezza
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi Jezza,

I solved for the number value then did a regular lookup off that number. I started with a 0 in A1 of the second sheet so I didn't have to bend the formula too much.

This is a CSE formula so you will need to hit Ctrl+Shift+Enter for it to work properly (braces{} will add themselves).

Solve for number starting in A2 of Sheet2:
Code:
{=INDEX(Sheet1!$A$1:$A$6,MATCH(1,(A1<Sheet1!$A$1:$A$6)*("Yes"=Sheet1!$C$1:$C$6),0))}

Once you have the number you can do an INDEX/MATCH or VLOOKUP to grab the fruit name.

NH
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,904
Members
449,477
Latest member
panjongshing

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