Calculation based on conditions

Muthukrishnan V

Active Member
Joined
May 29, 2008
Messages
297
Office Version
  1. 365
Platform
  1. Windows
Excel 2007.
Cell A1 : contains income in numerical, for example 1500000
Cell B1 : contains category in text. The text will be either GENERAL or SRCTZN
B1 will display only GENERAL or SRCTZN.

Cell C1: contains formula to calculate Tax for GENERAL category.

Cell D1: contains formula to calculate Tax for SRCTZN category.


Cell E1: In this cell I want result of Tax. If B1 displays GENERAL - tax will be based on C1.
If B1 displays SRCTZN - tax will be on D1.

I request a formula. Thanks
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
In E1 enter:

=IF($B1="GENERAL",formula-expression-for-general,IF($B1="SRCTZN",formula-expression-for-srctzn,""))
 
Upvote 0
Entered in E1 as suggested by Aladin Akyurek. In E1 result returned as: #NAME ?
How the above will link to C1 or D1 for the relative formulas?

Actually, you don't need C1 and D1 because the formulas in those cells must be plugged into the formula I suggested.

What are the formulas that you have in C1 and D1?
 
Upvote 0
C1 for GENERAL
=IF(A1<=250000,0,IF(A1<=500000,(A1-250000)*10%-MIN((A1-
250000)*10%,2000),IF(A1<=1000000,25000+(A1-500000)
*20%,125000+(A1-1000000)*30%)))

D1 for SRCTZN
=IF(A1<=300000,0,IF(A1<=500000,(A1-300000)*10%-MIN((A1-
300000)*10%,2000),IF(A1<=1000000,20000+(A1-500000)
*20%,120000+(A1-1000000)*30%)))

Kindly guide me further Aladin Akyurek. Thanks
 
Upvote 0
Try...

=IF($B1="GENERAL",IF(A1<=250000,0,IF(A1<=500000,(A1-250000)*10%-MIN((A1-
250000)*10%,2000),IF(A1<=1000000,25000+(A1-500000)
*20%,125000+(A1-1000000)*30%))),IF($B1="SRCTZN",IF(A1<=300000,0,IF(A1<=500000,(A1-300000)*10%-MIN((A1-
300000)*10%,2000),IF(A1<=1000000,20000+(A1-500000)
*20%,120000+(A1-1000000)*30%))),""))

Using this there is no need for C1 and D1.

Otherwise:

=IF($B1="GENERAL",$C1,IF($B1="SRCTZN",$D1,""))

 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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