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
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Then there is no defined name at all. So I need an if-then or case statement checking for specific values, what row they occur on, and making a defined name based on that.
 
Upvote 0
If the name MyFirstCell refers to =INDEX(Sheet1!$B:$B, MATCH(4, Sheet1!$A:$A,0), 1) then MyFirstCell will be the cell in column B next to the first occurrence of 4 in column A.
 
Upvote 0
I put that in the "refers to" box while defining a named variable, but nothing got named. I have my column A and B like this:

1 g
2 f
3 r
4 t
5 y
6 u
7 i
8 o
9 p

Is that not the right way to implement it?
 
Upvote 0
If you fill in the name and refers to boxes and then put =MyFirstOne in a cell, it should return the value from that cell.
 
Upvote 0
Does the Sheet1 in my formula match your situation.

No, this forum doesn't have the capability for attaching workbooks.
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,036
Members
449,062
Latest member
mike575

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