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.
[TABLE="class: grid, width: 744"]
<colgroup><col span="6"></colgroup><tbody>[TR]
[TD]Documents Reviewed[/TD]
[TD]Document Tally[/TD]
[TD]Pricing Tier 1 - Documents
(1 - 250,000)[/TD]
[TD]Pricing Tier 2 - Documents
(250,001 - 500,000)[/TD]
[TD]Pricing Tier 3 - Documents
(500,001 - 1,000,000)[/TD]
[TD]Pricing Tier 4 - Documents
(1,000,001+)[/TD]
[/TR]
[TR]
[TD]138,466[/TD]
[TD]138,466[/TD]
[TD]must be 138,466 until B2 reaches 250000[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]142,765[/TD]
[TD]281,231[/TD]
[TD]-[/TD]
[TD] 281,231-142,765 if<500000 else move to T3 etc.[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]47,356[/TD]
[TD]328,587[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]37,541[/TD]
[TD]366,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]50,000[/TD]
[TD]416,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]150,000[/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD] [/TD]
[TD]566,128[/TD]
[TD] -[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]250000[/TD]
[TD]500000[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
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.
[TABLE="class: grid, width: 384"]
<colgroup><col width="64" span="6" style="width: 48pt;"></colgroup><tbody>[TR]
[TD="width: 64"]new number[/TD]
[TD="width: 64"]Tally[/TD]
[TD="width: 64"]Pricing Tier 1 - Documents
(1 - 250,000)[/TD]
[TD="width: 64"]Pricing Tier 2 - Documents
(250,001 - 500,000)[/TD]
[TD="width: 64"]Pricing Tier 3 - Documents
(500,001 - 1,000,000)[/TD]
[TD="width: 64"]Pricing Tier 4 - Documents
(1,000,001+)[/TD]
[/TR]
[TR]
[TD="width: 64"]138,466[/TD]
[TD="width: 64"]138,466[/TD]
[TD="width: 64"]138,466[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]142,765[/TD]
[TD="width: 64"]281,231[/TD]
[TD="width: 64"]111,534[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]47,356[/TD]
[TD="width: 64"]328,587[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]78,587[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]37,541[/TD]
[TD="width: 64"]366,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]116,128[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]50,000[/TD]
[TD="width: 64"]416,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]166,128[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]150,000[/TD]
[TD="width: 64"]566,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]66,128[/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]100,000[/TD]
[TD="width: 64"]666,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]70,000[/TD]
[TD="width: 64"]736,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]60,000[/TD]
[TD="width: 64"]796,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]3,000[/TD]
[TD="width: 64"]799,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]#REF![/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]295,000[/TD]
[TD="width: 64"]1,094,128[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"]0[/TD]
[TD="width: 64"][/TD]
[TD="width: 64"]#REF![/TD]
[/TR]
[TR]
[TD="width: 64"]1,094,128[/TD]
[TD="width: 64"] [/TD]
[TD="width: 64"]250,000[/TD]
[TD="width: 64"]249,999[/TD]
[TD="width: 64"]249,999[/TD]
[TD="width: 64"]#REF!

[/TD]
[/TR]
</tbody>[/TABLE]

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,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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