Auto naming a range based on cell content

evancaldwell

New Member
Joined
Jun 17, 2011
Messages
1
i am trying to create a set of named ranges based on cell content.

column A contains ID numbers column B contains an ID number concatenated with either yes or no (column B indicates which ID number in column A that record is assigned to) column C contains a number.

for example:
column A___ column B___ column C
869011____ 101110no___ 500
378225____ 869011yes__ 200
254111____ 869011no___ 300
654766____ 378225no___ 100
789542____ 869011yes__ 700
798465____ 378225yes__ 400

what i want to do is create a named range for each ID number in column A where the criteria is that ID number plus yes or no in column B where the named range contains the corresponding values in column C.

so for row 1 the named range would be _869011group and would contain column C rows 2,3 and 5. because column B rows 2,3 and 5 contain 869011yes and 869011no.
for row 2 the named range would be _378225group and would contain column C rows 4 and 6. because column B rows 4 and 6 contain 378225yes and 378225no.
 
Last edited:

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

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