Formula for subtracting every 4th value?

fuzzmaster

Board Regular
Joined
May 24, 2007
Messages
62
Looking for a formula (or function) to take a starting value (X), then subtract a value (Y), and then subtract the value 4 columns to the right (Y+4), repeated 48 times. Something like this:

X-(Y)-(Y+4)-(Y+8)-(Y+12)-(Y+16)...-(Y+192)

Is there a quicker formula or function to do this rather than typing out all 48 operations?

Thanks!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Looking for a formula (or function) to take a starting value (X), then subtract a value (Y), and then subtract the value 4 columns to the right (Y+4), repeated 48 times. Something like this:

X-(Y)-(Y+4)-(Y+8)-(Y+12)-(Y+16)...-(Y+192)

Is there a quicker formula or function to do this rather than typing out all 48 operations?

Thanks!

Care to post a sample, mapped to a range, and the desired result for that sample.
 
Upvote 0
Um...not sure what you're asking for. As an example, if you started with the value in A1, and then subtracted every 4th value to the right 48 times. e.g.:

A1-E1-I1-M1-Q1...(repeated for 48 cells)

Is that what you're looking for?
 
Upvote 0
With data in A1:GK1, try this:
=A1+SUMPRODUCT(--(MOD(COLUMN(B1:GK1)-COLUMN(A1),4)=0),B1:GK1)
 
Upvote 0

Forum statistics

Threads
1,224,607
Messages
6,179,871
Members
452,948
Latest member
UsmanAli786

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