Dynamically defined names

spacely

Board Regular
Joined
Oct 26, 2007
Messages
248
Hello,

I was looking into "dynamically defined names", but am not sure that's what will work for me...

I have values changing in column A, and based on that value, the cells in column B (same row) should have a particular defined name. But there could be several possible dynamically defined names assigned. So, i.e. if A4 = 4% and A11 = 19%, the assignment would find them both, and assign B4 as MyFirstOne, and B11 as MySecondOne.

Would like to avoid VBA, but it's OK if we need to go there :)

Thanks a lot!

Dave
 
Yes, in refers to I have

=INDEX(Sheet1!$B:$B, MATCH("4", Sheet1!$A:$A,0), 1)

...and Sheet1 has the column A and B I showed above. I added the quotes around 4 after it also didn't work w/o quotes, so either way not capturing the 4. I wonder if it should be an array formula...
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Oh interesting! I instead entered column A entries like ="1", ="2", ... ="4"... and now it works.

Is that match only on strings? Are my cells really strings??
 
Upvote 0
yes I know. And when I take them off, it now works, but only after I retype the numbers as normal numbers and not as ="4" for example. Not sure why it works now.
 
Upvote 0
Without the quotes, the formula is looking for the number 4. With the quotes it is looking for the string "4". They are different.
 
Upvote 0

Forum statistics

Threads
1,215,603
Messages
6,125,776
Members
449,259
Latest member
rehanahmadawan

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