Offset a Named Range as the first cell in an Index | Match

Shiseiji

Board Regular
Joined
Oct 23, 2009
Messages
214
Office Version
  1. 2019
Platform
  1. Windows
Hello all. As always, TIA!
I have a cell previously named so would like to use that rather than (MATCH(RC-9). My best isn't working:

.FormulaR1C1 = "=IF(ISERROR(MATCH(Range(ws_3Admin_UserLogOn).Offset(1,0),0)),""No Record"", INDEX(ws_2Users_RngEmpTyp, MATCH(Range(ws_3Admin_UserLogOn).Offset(1,0),ws_2Users_RngLogOn,0)))"

Appreciate the look.

Ron
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You are missing your MATCH range in the first MATCH. Assuming ws_3Admin_UserLogOn is a single value and ws_2Users_RngLogOn is a range:
Excel Formula:
=IF(ISERROR(MATCH(Range(ws_3Admin_UserLogOn).Offset(1,0),ws_2Users_RngLogOn,0)),"No Record", INDEX(ws_2Users_RngEmpTyp, MATCH(Range(ws_3Admin_UserLogOn).Offset(1,0),ws_2Users_RngLogOn,0)))
By the way, this may work also:
Excel Formula:
=IFERROR(INDEX(ws_2Users_RngEmpTyp, MATCH(Range(ws_3Admin_UserLogOn).Offset(1,0),ws_2Users_RngLogOn,0)),"No Record")
 
Upvote 0
Solution
The things we can't see when we stare too long . . . much appreciated!
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,320
Members
449,218
Latest member
Excel Master

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