Formula $ Lock help ?

zone709

Well-known Member
Joined
Mar 1, 2016
Messages
2,129
Office Version
  1. 365
Platform
  1. Windows
Hi I use this formula below, but my issue I am having is I use this in my macro I run which shifts the sheet called Pay!. What happens the $AY below in red changes to like Z Or anything Less then AY. Is there a way to lock the AY cell so it wont change at all? Even with $AY it changes so wanted to see if there is a way for it not to change.


=IFERROR(VLOOKUP($C$6:$C$248,Pay!$D$2:$
AY$93,2,0),"")+IFERROR(VLOOKUP($C$6:$C$248,Pay!$D$2:$AY
$93,4,0),"")
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Ok i think i may need help putting this one together. I an adding what you say but cant get it to go.
 
Upvote 0
Try:

=IFERROR(VLOOKUP($C$6:$C$248,indirect("Pay!$D$2:$AY$93"),2,0),"")+IFERROR(VLOOKUP($C$6:$C$248,indirect("Pay!$D$2:$AY$93"),4,0),"")


or:

=IFERROR(VLOOKUP($C$6:$C$248,Pay!$D$2:indirect("Pay!$AY$93"),2,0),"")+IFERROR(VLOOKUP($C$6:$C$248,Pay!$D$2:indirect("Pay!$AY$93"),4,0),"")

to exclude the col D reference
 
Last edited:
Upvote 0
hi ok this works great thanks for the help. I was way off on adding the indirect thanks again.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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