Number Pattern Formulas

CharneLewis

New Member
Joined
Jun 30, 2021
Messages
20
Office Version
  1. 365
Platform
  1. Windows
Hallo,

So I need a formula which will do the following:
1-0=1
2-1=1
3-1=2
4-2=2
5-2=3
6-3=3
7-3=4
8-4=4

The reason for this is because I'm working with scaffolding forming "square gaps" (the table given represents the scaffolding) and in this case every 2nd "window" needs an extra pipe, in other words all the odd numbers.

12345678910

If you maybe have formulas for cases where very 3rd and 4th "window" needs an extra pipe, that will be helpful too. Each case should be done in it's own cell, see below.

Here is the minisheet of the table i need to input the formula.
Column Info:
C - shows the different cases (as i mentioned).
D - shows how many gaps there are.
G - needs the formula i requested.
In G7:G8 I tried formulas for cases 3 and 4.
Ignore H, E and F


05 Support and soffit quotes 6.xlsx
BCDEFGH
3Standard Window Size
4Possible OutcomesCaseTotal gapsTotal pipes in RowTotal Ledgers
5case 19934
6case 25234
7case 39334
8case 49334
Long Bracing Window Qty 05
Cell Formulas
RangeFormula
D5,D7:D8D5=COUNTIF('Ledger make-ups 04'!$E$4:$E$53,">0")
G5G5=D5
H5:H8H5=SUM('Ledger make-ups 04'!$G$4:$G$53)
G6G6=ROUNDUP(IFS(E6=1,D6-(D6/2),E6=0,D6-(D6-2)),0)
G7G7=ROUNDUP(D7-(D7/3)*2,0)
G8G8=ROUNDUP(D8/C8,0)
B6:B7B6=B5
B8B8=B5
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hallo,

So I need a formula which will do the following:
1-0=1
2-1=1
3-1=2
4-2=2
5-2=3
6-3=3
7-3=4
8-4=4

The reason for this is because I'm working with scaffolding forming "square gaps" (the table given represents the scaffolding) and in this case every 2nd "window" needs an extra pipe, in other words all the odd numbers.

12345678910

If you maybe have formulas for cases where very 3rd and 4th "window" needs an extra pipe, that will be helpful too. Each case should be done in it's own cell, see below.

Here is the minisheet of the table i need to input the formula.
Column Info:
C - shows the different cases (as i mentioned).
D - shows how many gaps there are.
G - needs the formula i requested.
In G7:G8 I tried formulas for cases 3 and 4.
Ignore H, E and F


05 Support and soffit quotes 6.xlsx
BCDEFGH
3Standard Window Size
4Possible OutcomesCaseTotal gapsTotal pipes in RowTotal Ledgers
5case 19934
6case 25234
7case 39334
8case 49334
Long Bracing Window Qty 05
Cell Formulas
RangeFormula
D5,D7:D8D5=COUNTIF('Ledger make-ups 04'!$E$4:$E$53,">0")
G5G5=D5
H5:H8H5=SUM('Ledger make-ups 04'!$G$4:$G$53)
G6G6=ROUNDUP(IFS(E6=1,D6-(D6/2),E6=0,D6-(D6-2)),0)
G7G7=ROUNDUP(D7-(D7/3)*2,0)
G8G8=ROUNDUP(D8/C8,0)
B6:B7B6=B5
B8B8=B5
By "window" i refer to the gaps.
 
Upvote 0

Forum statistics

Threads
1,214,877
Messages
6,122,051
Members
449,064
Latest member
scottdog129

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