Change how the formula varies with the cell index

samir_aguiar

New Member
Joined
May 6, 2011
Messages
16
It was hard to try to explain this in the title!

You know when you type a formula, say SUM(A1:A20) and when you drag to other cells it changes to SUM(B1:B20), SUM(C1:C20), etc.? So, I wanted that to happen when cells are not close to each other, neither in the same row or column.

I have this formula:
=LEFT(E13;FIND("/";E13)-1)

I wanted to give a name to it, say test, to make it easier to type. Then, I wanted to use this formula (test) in cells O4:O9, where O4 uses E13, O5 uses H13, O6 uses K13, O7 uses E26 and so on. How do I do that??

thanks a lot.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Samir,

You have to create two names.

TestCell =OFFSET('Plan1'!$A$1,INT((LIN()-4)/3)*13+12,(LIN()-4)*3+4-(INT((LIN()-4)/3)*9))

Test =LEFT(TestCell,FIND("/",TestCell)-1)

Then, use the name Test in cells O4:O9.

Markmzz
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,331
Members
452,907
Latest member
Roland Deschain

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