Help with array transfer / if statements

excelhelp123

New Member
Joined
Feb 20, 2009
Messages
2
Hello all, I have a fairly difficult question.

I have two sheets, one with general data like employee name, address, phone, and another column for a "Yes/No." This sheet can contain up to 50 lines of data.

On the other sheet, I have a table in the middle of the spreadsheet (there's information above it and information below it). I need the information on the previous sheet to populate this table automatically if there is a "Yes" filled in.

Now obviously I can do an "IF" statement, but there could be up to 50 lines on the previous sheet, and I only have room for 10 people on the second sheet. Also, I need them to be in order, so that there aren't any blank lines in between the "Yes" ones.

In a way I need excel to crawl through the first sheet and pick out, line for line, which one has Yes. And then populate the second sheet with this information. I hope this makes sense and I thank everyone in advance for any help.

Thanks!!!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
As long as the Names are unique, you can use a Small(if) array to make a list of all the "yes" possibilities, and have it draw over the names. Then use regular VLOOKUP on the names to draw over the matching address, phone, etc.

Like so:

Excel Workbook
ABCDEFG
1NameAddressPhoneYes/NoCount5
2Employee1Address1Phone1Y
3Employee2Address2Phone2Y
4Employee3Address3Phone3
5Employee4Address4Phone4Y
6Employee5Address5Phone5
7Employee6Address6Phone6
8Employee7Address7Phone7Y
9Employee8Address8Phone8
10Employee9Address9Phone9Y
Sheet1
Excel Workbook
ABC
4Chart
5NAMESADDRPH
6Employee1Address1Phone1
7Employee2Address2Phone2
8Employee4Address4Phone4
9Employee7Address7Phone7
10Employee9Address9Phone9
11
12
13
14
15
Sheet2


Just copy those three formulas down the 10-row chart and they will fill in dynamically.
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,654
Members
449,113
Latest member
Hochanz

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