possible to have formula with "gaps"

erickguz

Board Regular
Joined
May 11, 2010
Messages
58
Is it to possible to do the following:

A B C D E F... BA BB BC

4 5 2 8 9 6 (4-5) (2-8) (9-6)

In column BA, I want to subtact COL a from COL B
In column BB, I want to subtract COL C from COL D

This is repeated 150 times so the columns are only for reference.

In other words, normally, I can just drag a formula, but here I wouldn't be able to drag.

Thanks.
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Maybe...

BA1 copied across and down
=INDEX($A1:$F1,2*COLUMNS($BA1:BA1)-1)-INDEX($A1:$F1,2*COLUMNS($BA1:BA1))

M.
 
Upvote 0
I think the INDEX will be better but seeing as I was about to post...

In BA and copied across

=INDIRECT(ADDRESS(ROW(),2*COLUMN(A1)))-INDIRECT(ADDRESS(ROW(),2*COLUMN(A1)-1))
 
Upvote 0
hi. thank you for reply. It worked. I have a question though.

I placed two columns in between the data and thought I could figure out the formula. Didn't work. Is the following possible?

A B C D E F G H BA BB

Chris Green 10 4 Michael Purple 7 2 (c2-d2) (g2-h2)


The difference is that I have now added two columns with data/info in between.

Thank you.
 
Upvote 0
Try

BA2 copied across
=INDEX($A2:$H2,4*COLUMNS($BA2:BA2)-1)-INDEX($A2:$H2,4*COLUMNS($BA2:BA2))

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,746
Messages
6,132,479
Members
449,729
Latest member
davelevnt

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