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>
 
My apologies, the code in D1 is incorrect. Please replace it with this.
Code:
=IFERROR(IF($E$1&C1=B1,VLOOKUP($E$1&$C1,$B$1:$C$7,2,FALSE)&", ",""),"")
 
Upvote 0

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Great idea, but we assume that the data is much larger
What will be the shape of the formula in column "D"
Thank you very much Mr. "Warpglit" on this beautiful idea
 
Upvote 0
Great Master "Aladdin"
But this is not required. "Unfortunately"
I mean:
1 - If I put the "M1" corresponding to the number "2", give me "2" in cell "D1", only "2"
2 - If I changed the "M1" corresponding to the number "5", give me "5" in cell "D1", only "5"
And so on for the number "4"
Unfortunately, but I know you're a genius and can do so easily

Genius or not, a last assault...


M12 5
M23
M15M1
M36
M48
M50
M14

<COLGROUP><COL style="WIDTH: 48pt" span=4 width=64><TBODY>
</TBODY>

D1, just enter:

=LOOKUP(REPT("z",255),C:C,B:B)
 
Upvote 0
This I wanted Mister "Aladdin"
I'm sure, you will reach what I want exactly
You are really a genius!
This is a fact
 
Upvote 0
Great idea, but we assume that the data is much larger
What will be the shape of the formula in column "D"
Thank you very much Mr. "Warpglit" on this beautiful idea
If you have a lot more data than just 7 rows. You'd have to alter the formula in to encompass all your rows.
Since my first formula I suggested doesn't support your version of excel, you have no choice but to use my formula or create a VBA. I am not very good at VBA so someone else will try to help you.
 
Upvote 0
Aladdin, Emmy isn't very good at explaining so let me help you understand what he wants so you can help him with the VBA. Assume "M1" is in C1. In cell C2, display all values in B column that have M1 in column A next to it. Desperate all the values with a comma. My VBA is not good or I would do it.
For each M1 in column A, Display it's value from column B separated by commas.
 
Upvote 0
Aladdin, Emmy isn't very good at explaining so let me help you understand what he wants so you can help him with the VBA. Assume "M1" is in C1. In cell C2, display all values in B column that have M1 in column A next to it. Desperate all the values with a comma. My VBA is not good or I would do it.
For each M1 in column A, Display it's value from column B separated by commas.

You apparently missed post #17 and #18.

By the way, one needs in this case just to post the result for M1 in a visual form, not in words...
 
Upvote 0

Forum statistics

Threads
1,221,783
Messages
6,161,938
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