Formula Increment

bullcreel

Board Regular
Joined
Aug 25, 2016
Messages
163
Office Version
  1. 2021
Platform
  1. Windows
=IF(BatNum!$P3=0,2,IF(BatNum!$P3=1,1,IF(BatNum!$P3=2,1,IF(BatNum!$P3>=3,0))))
I have this formula in cell "H2". What i want it to do is when I copy it down i want it to check $P10 next, $P17, then $P24 and so on every 7 cells. Is this possible?

Thanks in advance

Jim
 
Thanks for updating your profile. (y)
How about in H2 only
Excel Formula:
=LET(a,INDEX(BatNum!P:P,SEQUENCE(10,,3,7)),IF(a=0,2,IF(OR(a={1,2}),1,0)))
Just change the 10 to however many rows you need.
 
Upvote 0

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I forgot I took out the sheet name. This is a correction to post in #2. Put this in cell H2, and drag down:

Excel Formula:
=SWITCH(INDIRECT("BatNum!$P"&3+(ROW(P2)-2)*7),1,2,2,1,0)
how does it do the "IF" statement calculations also?
 
Upvote 0
Thanks for updating your profile. (y)
How about in H2 only
Excel Formula:
=LET(a,INDEX(BatNum!P:P,SEQUENCE(10,,3,7)),IF(a=0,2,IF(OR(a={1,2}),1,0)))
Just change the 10 to however many rows you need.
 
Upvote 0
Thanks for updating your profile. (y)
How about in H2 only
Excel Formula:
=LET(a,INDEX(BatNum!P:P,SEQUENCE(10,,3,7)),IF(a=0,2,IF(OR(a={1,2}),1,0)))
Just change the 10 to however many rows you need.
When I put this formula in cell "H2", I get a #SPILL! error. So i tried putting it in cell I2 just to try it and it worked beautifully.
 
Upvote 0
When I put this formula in cell "H2", I get a #SPILL! error. So i tried putting it in cell I2 just to try it and it worked beautifully.
Nevermind, found error. It works beautifully...thankyou so much.

Jim
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,847
Messages
6,181,324
Members
453,032
Latest member
Pauh

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