use a Named Range LastRow value instead of a hard coded Column and Row number question

blbat

Active Member
Joined
Mar 24, 2010
Messages
338
Office Version
  1. 2016
  2. 2013
I have a fully functional Named Range to find last row:

"LastRowSheet1"

(I know it works because I can enter =LastRowSheet1 in a cell and the correct row number is displayed)

I have an array formula that is fully functional as is:

Code:
=IFERROR(MATCH($A2&"|"$B2,Sheet1!$N$1:$N$300&"|"Sheet1!$O$1:$O$300,0)&" Keep this","Not Found")

C+S+E
(which returns the row number and text "Keep this" if Match is found)


Now I want to use the result of "LastRowSheet1" in the above formula.

What is the proper syntax to use if I want to switch out the value for $N$300 and $O$300 and use LastRowSheet1 ?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Please Try this

=IFERROR(MATCH($A2&"|"&$B2,Sheet1!$N$1:INDEX($N:$N,LastRowSheet1)&"|"&Sheet1!$O$1:INDEX($O:$O,LastRowSheet1),0)&" Keep this","Not Found")
 
Upvote 0
Solution
Thanks Jeffrey,
I should have thought of the INDEX you threw in there, it just wasn't bubbling up in my thought process.
I appreciate the assist.

~blbat
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,332
Members
453,032
Latest member
Pauh

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