Nested IF function

StopItPoppet

New Member
Joined
Nov 22, 2017
Messages
7
Hi
Im quite new to this site, loving it already. This question might have been asked numerous times already, just dont know what to search for. I require assistance in creating tiers. This is based on tally system. Apologies if it is not clear enough. Not sure how to ask this correctly.
Documents ReviewedDocument TallyPricing Tier 1 - Documents
(1 - 250,000)
Pricing Tier 2 - Documents
(250,001 - 500,000)
Pricing Tier 3 - Documents
(500,001 - 1,000,000)
Pricing Tier 4 - Documents
(1,000,001+)
138,466138,466must be 138,466 until B2 reaches 250000
142,765281,231- 281,231-142,765 if<500000 else move to T3 etc.
47,356328,587 -
37,541366,128 -
50,000416,128 -
150,000566,128 -
566,128 -
566,128 -
566,128 -
566,128 -
566,128 -
250000500000

<colgroup><col span="6"></colgroup><tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
not sure exactly what you are doing
can you explain in words

as you are using cell ref , can you use the headings - i dont know for sure what cell b2 is
 
Upvote 0
crappy at getting my q across... lets try again. When the total of column 3(PT1) reaches 250000, column 4 (PT2) should be populated until the total in column 4 reaches 250000 giving the overall total 500000. when this is reached, column 5(PT5) should be populated until that reaches 250000 as well.
new numberTallyPricing Tier 1 - Documents
(1 - 250,000)
Pricing Tier 2 - Documents
(250,001 - 500,000)
Pricing Tier 3 - Documents
(500,001 - 1,000,000)
Pricing Tier 4 - Documents
(1,000,001+)
138,466138,466138,4660#REF!#REF!
142,765281,231111,5340#REF!#REF!
47,356328,587078,587#REF!#REF!
37,541366,1280116,128#REF!#REF!
50,000416,1280166,128#REF!#REF!
150,000566,128066,128#REF!
100,000666,12800#REF!#REF!
70,000736,12800#REF!#REF!
60,000796,12800#REF!#REF!
3,000799,12800#REF!#REF!
295,0001,094,12800#REF!
1,094,128 250,000249,999249,999#REF!


<colgroup><col width="64" span="6" style="width: 48pt;"></colgroup><tbody>
</tbody>

hopefully this helps
 
Upvote 0
Excel Workbook
ABCDEF
1new numberTallyPricing Tier 1 - DocumentsPricing Tier 2 - DocumentsPricing Tier 3 - DocumentsPricing Tier 4 - Documents
2(1 - 250,000)(250,001 - 500,000)(500,001 - 1,000,000)(1,000,001+)
3138,466138,466138,466000
4142,765281,231028123100
547,356328,587032858700
637,541366,128036612800
750,000416,128041612800
8150,000566,128005661280
9100,000666,128006661280
1070,000736,128007361280
1160,000796,128007961280
123,000799,128007991280
13295,0001,094,1280001094128
141,094,1282,188,2560002188256
Sheet1
 
Upvote 0
The previous post

formula is putting the accumulated total in each cell Column B
if you want to put in column A numbers

then change the formula so that A3 is in the TRUE or false part

see next post
 
Last edited:
Upvote 0
Excel Workbook
ABCDEF
1new numberTallyPricing Tier 1 - DocumentsPricing Tier 2 - DocumentsPricing Tier 3 - DocumentsPricing Tier 4 - Documents
2(1 - 250,000)(250,001 - 500,000)(500,001 - 1,000,000)(1,000,001+)
3138,466138,466138,466000
4142,765281,231014276500
547,356328,58704735600
637,541366,12803754100
750,000416,12805000000
8150,000566,128001500000
9100,000666,128001000000
1070,000736,12800700000
1160,000796,12800600000
123,000799,1280030000
13295,0001,094,128000295000
141,094,1282,188,2560001094128
Sheet1
 
Upvote 0
Thanks for this. However, the columns need to add up 250000/249999 before the next column can be populated. So eg. i have my first 200k which falls in Tier1. My next entry is 100k, this amount is split 50k should be for tier 1 giving me a total of 250k in the column/tier and the difference 50k is placed in tier 2
 
Upvote 0
Hi, your expected results in post#3 are a little odd, you seem to go into a cumulative sum when you get Tier 2.

Here is how I would do it, formulas in the top row are copied down.


Excel 2013/2016
ABCDEF
2new numberTally(1 - 250,000)(250,001 - 500,000)(500,001 - 1,000,000)(1,000,001+)
3138,466138,466138,466---
4142,765281,231111,53431,231--
547,356328,587-47,356--
637,541366,128-37,541--
750,000416,128-50,000--
8150,000566,128-83,87266,128-
9100,000666,128--100,000-
1070,000736,128--70,000-
1160,000796,128--60,000-
123,000799,128--3,000-
13295,0001,094,128--200,87294,128
141,094,128250,000250,000500,00094,128
Sheet1
Cell Formulas
RangeFormula
C3=MAX(0,SUM($A3:$A3)+MIN(0,250000-SUM($A$3:$A3)))
D3=MAX(0,$A3+MIN(0,500000-SUM($A$3:$A3)))-SUM($C3:C3)
E3=MAX(0,$A3+MIN(0,1000000-SUM($A$3:$A3)))-SUM($C3:D3)
F3=MAX(0,$A3+MIN(0,9.99E+307-SUM($A$3:$A3)))-SUM($C3:E3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,749
Members
449,186
Latest member
HBryant

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