Formula to Copy Named Range to column if text matches

dlmoore99

Board Regular
Joined
May 20, 2011
Messages
73
Office Version
  1. 2019
Platform
  1. MacOS
I'm trying to copy a named range to a new column when the named range matches cell data entry. So columns B-F are names ranges (C-01 thru C-06 respectively), what I'm trying to do is that when H1 matches any of the named ranges in B1-F1, that named range data is copied below. I've tried Index/Match, Countif, and many other formula variations and nothing seems to work. I can't find anything that will work on this forum or google. Thanks for your assistance.

Calendar working.xlsx
BCDEFGH
1C-01C-02C-04C-05C-06C-05
21/7/211/4/211/4/211/1/211/8/211/1/21
31/15/211/12/211/12/211/2/211/9/211/2/21
41/16/211/20/211/20/211/11/211/18/211/11/21
51/25/211/28/211/28/211/19/211/26/211/19/21
62/2/212/5/212/5/211/27/212/3/211/27/21
72/10/212/6/212/6/212/4/212/11/212/4/21
82/18/212/15/212/15/212/12/212/19/212/12/21
92/26/212/23/212/23/212/13/212/20/212/13/21
102/27/213/3/213/3/212/22/213/1/212/22/21
113/8/213/11/213/11/213/2/213/9/213/2/21
123/16/213/19/213/19/213/10/213/17/213/10/21
133/24/213/20/213/20/213/18/213/25/213/18/21
144/1/213/29/213/29/213/26/214/2/213/26/21
154/9/214/6/214/6/213/27/214/3/213/27/21
164/10/214/14/214/14/214/5/214/12/214/5/21
174/19/214/22/214/22/214/13/214/20/214/13/21
184/27/214/30/214/30/214/21/214/28/214/21/21
195/5/215/1/215/1/214/29/215/6/214/29/21
205/13/215/10/215/10/215/7/215/14/215/7/21
215/21/215/18/215/18/215/8/215/15/215/8/21
225/22/215/26/215/26/215/17/215/24/215/17/21
235/31/216/3/216/3/215/25/216/1/215/25/21
246/8/216/11/216/11/216/2/216/9/216/2/21
256/16/216/12/216/12/216/10/216/17/216/10/21
266/24/216/21/216/21/216/18/216/25/216/18/21
277/2/216/29/216/29/216/19/216/26/216/19/21
287/3/217/7/217/7/216/28/217/5/216/28/21
Sheet3
Cell Formulas
RangeFormula
H1H1=Setup!G4
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

jasonb75

Well-known Member
Joined
Dec 30, 2008
Messages
13,221
Office Version
  1. 365
Platform
  1. Windows
I don't see any named ranges in your mini-sheet, just column headers. If they are named then you would need to use INDIRECT, which is less desirable than the formula to do what you want without using named ranges.

Enter this into H2, then fill down as needed.
Excel Formula:
=INDEX($A$2:$E$28,,MATCH($G$1,$A$1:$E$1,0))
 
Solution

dlmoore99

Board Regular
Joined
May 20, 2011
Messages
73
Office Version
  1. 2019
Platform
  1. MacOS
Sorry for the late reply as things took me away from this project, this works great, i had tried an index/match but was trying to use it with the names ranges that i didn't add to the sample, Thank you
 

Forum statistics

Threads
1,136,954
Messages
5,678,760
Members
419,782
Latest member
gc75150

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
Top