Value corresponding to the name

shimaa01234

Active Member
Joined
Jun 24, 2014
Messages
446
HI,
I own this table
1 - There's column "A" Names
2 - There's column "B" Values
The cell "C1" drop-down list of names
I want when the name selection is brought corresponding value even if repeated Name?
I want the solution by formulas
M12M1
M232
M15
M36
M48
M50
M14

<tbody>
</tbody>
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
The reason Westman's formula isn't working is because lookup only finds the first value in the range. You are looking to display all the values that match C1. So if there are 3 values that say M1 in column A, and you select M1 from the drop down list, then all 3 of the corresponding values for each M1 should be displayed. In your example table, the output to M1 should be 2, 5, and 4. Let me finish my cig and I'll get right on it.
 
Upvote 0
Alright home slice I got your answer. Check it....
A
BCD
1
M1
2M1222
3M235
4M1554
5M36
6M48
7M50
8M144

<tbody>
</tbody>
Alright so first off I moved your data one row down starting at A2. Then I created a column C. Put this equation in C2...
Code:
=IF($A2=$D$1,$B2,"")
Copy the equation down all the way to C8.
Now in D2, enter this equation...
Code:
=IFERROR(INDEX(C$2:C$8,AGGREGATE(15,6,(ROW(C$2:C$8)-ROW(C$2)+1)/(C$2:C$8<>""),ROWS(C$2:C2))),"")
Copy that code down all the way to D8.
Now you right click on column C and hide it so the user doesn't see it.

If this fixes your problem, reply with SOLVED.
Do me a personal favor and like my YouTube video about an excel work schedule maker I just built.
Excel Schedule Builder Instructional Video - YouTube
 
Last edited:
Upvote 0
Sorry, this formula is not working with Office 2003
Is it possible to bring the result without additional columns
 
Upvote 0
Sorry my formula didn't help you. I tested it before I posted it and it works with Excel 2010. It is not possible to accomplish this task without that additional column unless you decide you want to use VBA. If you decide to use just formulas, you need that extra column to get rid of all the blanks and create a list like I did in column D.
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,915
Members
451,730
Latest member
BudgetGirl

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