Formula to lock row number when inserting rows

Shadkng

Active Member
Joined
Oct 11, 2018
Messages
370
Hi, in the formula below when I insert a row the reference F6 changes to row 7. I would like to lock row 6 but have F change to G,H, etc. I see online a few ways to do it with indirect or maybe row function but I can't get it right. Any help would be appreciated. Thanks

=VLOOKUP(F$5,ARRAY!$A$22:$Z$38,6,FALSE)*F6
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

You do not mention in which cell your formula is located ...

Using the Indirect function ... you could lock the row number ...

Hope this will help
 
Upvote 0
You can replace F6 by

Code:
INDIRECT(SUBSTITUTE(ADDRESS(1,COLUMN(),4),1,"")&"6")

HTH
 
Upvote 0
Hi, thanks it seems to work. But I don't understand the formula but I'll go online to learn. Can you help with one more?

I need to have $C$6 locked as well so inserting rows will not affect it. Thanks

Code:
=IFERROR(IF(PO!$C$6="FLEX",INDEX(PO!$E$5:$U$28,2,MATCH(B8,PO!$E$5:$U$5,0))*VLOOKUP(B8,ARRAY!$A$22:$E$38,5,FALSE),""),"")
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,203
Members
452,617
Latest member
Narendra Babu D

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