Create a list based on the value of a cell

jc352

Board Regular
Joined
Aug 13, 2008
Messages
139
Office Version
  1. 365
Platform
  1. Windows
I am trying to create a list in row E based on the information in row C. If C=Blue I want the it in the list. If something repeats I want it included in the new list.

The new list in in row E would be 1234, 1234 and 8518

ABC
1234Jones, SamBlue
1234Jones, SamBlue
8341Brown, AdamGreen
8518Smith, JohnBlue
6541Mills, DanOrange

<tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
The best thing to add to your description is the set of the values that you expect to see in column E. Would you provide those values?
 
Upvote 0
I would like to have the values in column a shown in column e based on the value of column c, allowing repeats.
 
Upvote 0
I would like to have the values in column a shown in column e based on the value of column c, allowing repeats.

Which values are they? I'm sure it's obvious to you which they are, but not necessarily to the would-be helpers...
 
Upvote 0
I see from my original post how this is confusing. Where I said row, I should have said column.

I am trying to create a list in column E using the information in column A based on the information in column C. If the value in C=Blue, I would like the corresponding value in column A in the list in column E. If something repeats I want it included in this list as well.

Based on the above, the list in column E would be 1234, 1234 and 8518

ABC
1234Jones, SamBlue
1234Jones, SamBlue
8341Brown, AdamGreen
8518Smith, JohnBlue
6541Mills, DanOrange

<TBODY>
</TBODY>
 
Upvote 0
I see from my original post how this is confusing. Where I said row, I should have said column.

I am trying to create a list in column E using the information in column A based on the information in column C. If the value in C=Blue, I would like the corresponding value in column A in the list in column E. If something repeats I want it included in this list as well.

Based on the above, the list in column E would be 1234, 1234 and 8518

ABC
1234Jones, SamBlue
1234Jones, SamBlue
8341Brown, AdamGreen
8518Smith, JohnBlue
6541Mills, DanOrange

<tbody>
</tbody>

E2, control+shift+enter, not just enter, and copy down:
Rich (BB code):
=IFERROR(INDEX($A$2:$A$6,SMALL(IF($C$2:$C$6="Blue",
  ROW($A$2:$A$6)-ROW($A$2)+1),ROWS(E$2:E2))),"")
 
Upvote 0
Thank you, the formula returns #NAME?

You are probably on a pre-2007 system, which does not have the IFERROR function.

E1, just enter:
Rich (BB code):
=COUNTIF($C$2:$C$6,"Blue")

E2, control+shift+enter, not just enter, and copy down:
Rich (BB code):

=IF(ROWS(E$2:E2)<=E$1,INDEX($A$2:$A$6,SMALL(IF($C$2:$C$6="Blue",   
  ROW($A$2:$A$6)-ROW($A$2)+1),ROWS(E$2:E2))),"")
 
Upvote 0
Yes, working on 2003 for a little bit longer. That worked perfectly, thank you for your help!
 
Upvote 0

Forum statistics

Threads
1,215,681
Messages
6,126,191
Members
449,298
Latest member
Jest

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