how to set formula by locating a row above from a changeable cell

pigmango

New Member
Joined
Sep 8, 2018
Messages
2
Hello

in PL!P2, input as SC1, PL!P2 & PL!P3 is set with the formula below which returns details in worksheet inv! depends on PL!P2 and column C and D of invoice page. How to replace the part -4 in PL!PL3 because the -4 is changeable according the position of SC# in worksheet inv

PL!P2 (SC#) is input as SC1
formula in PL!PL2 (SC#) is =OFFSET(INV!$D1,MATCH(P2,INV!$D:$D,0),0)
formula in PL!PL3 (description) is =OFFSET(INV!$D1,MATCH(P2,INV!$D:$D,0)-4,-1)


inv worksheet :
column C contains description details in different rows such as " women's 100% cotton pants " or " men's xxx shorts " etc.
column D contains SC# in different rows such as SC1, SC2
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
sorry, rev below ...

in PL!P2, input as SC1, PL!P3 & PL!P4 is set with the formula below which returns details in worksheet inv! depends on PL!P2 and column C and D of invoice page. How to replace the part -4 in PL!PL3 because the -4 is changeable according the position of SC# in column D of worksheet inv

PL!P2 (SC#) is input as SC1
formula in PL!PL3 (SC#) is =OFFSET(INV!$D1,MATCH(P2,INV!$D:$D,0),0)
formula in PL!PL4 (description) is =OFFSET(INV!$D1,MATCH(P2,INV!$D:$D,0)-4,-1)


inv worksheet :
column C contains description details in different rows such as " women's 100% cotton pants " or " men's xxx shorts " etc.
column D contains SC# in different rows such as SC1, SC2
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,822
Members
449,190
Latest member
rscraig11

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