Replacing "offset" with "index"

eliasthebest

New Member
Joined
Jun 5, 2018
Messages
2
Hey guys!

Can anyone help me replace the "offset" with "index" in the following formula?

=IF(
AND(OFFSET(V12,0,-$I38,1,1)-OFFSET(W12,0,-$I38,1,1)=OFFSET(V12,0,-$I38,1,1),OFFSET(V12,0,-$I38,1,1)<>0),OFFSET(V30,0,-$I38,1,1)+OFFSET(V31,0,-$I38,1,1)-OFFSET(W31,0,-$I38,1,1)+OFFSET(W32,0,-$I38,1,1)-OFFSET(V32,0,-$I38,1,1),
IF(OFFSET(V2,0,-$I38,1,1)=1,OFFSET(V12,0,-$I38,1,1)+OFFSET(V32,0,-$I38,1,1)-OFFSET(G32,0,-$I38,1,1)+OFFSET(G31,0,-$I38,1,1)-OFFSET(V31,0,-$I38,1,1),
IF(OFFSET(V12,0,-$I38,1,1)=0,0,OFFSET(V12,0,-$I38,1,1)+OFFSET(U31,0,-$I38,1,1)-OFFSET(V31,0,-$I38,1,1)+OFFSET(V32,0,-$I38,1,1)-OFFSET(U32,0,-$I38,1,1)+V39)))

Thanks!!
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Welcome to the board.

I won't do all of them, but the method is the same for all (see how I do 1, you can do the rest)..

OFFSET(V12,0,-$I38,1,1)
Can be changed to
INDEX(12:12,22-$I38)

12:12 is the row reference from V12
22 is the column number of V
 
Upvote 0
Hi

Also:

=INDEX(12:12,COLUMN(V:V)-I38)

in the case you want to drag it across
 
Upvote 0
If i was doing this i would write some vba to do it. It might take as long as editing by hand but definitely more fun
 
Upvote 0

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

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