Using "IF" formula

Joined
May 5, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Morning,

A little difficult to explain what I'm trying to achieve but is it possible to use two if statements in one formula eg

DateDeptCompanyNetVATable
(Y/N)
20%
A
13.5%
B
19/03/2021SalesA1000y

if Company ="A" and VATable = "Y" then in 20% A = £200 otherwise £0.00

I appreciate its not the best worded question but any help greatly appreciated.

Thanks
C.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
did you want something like
Assuming Column C = Company
IN F2
=IF(AND(C2="A", E2="Y"), 20%, 0)
IN G2
=IF(AND(C2="B", E2="Y"), 13.5%, 0)

If you had the % in a cell in the header on there own, then you could use that cell for the %

I assume its the D column you want the % of
IN F2
=IF(AND(C2="A", E2="Y"), D2*0.2, 0)
IN G2
=IF(AND(C2="B", E2="Y"), D2*0.135, 0)
 
Upvote 0
did you want something like
Assuming Column C = Company
IN F2
=IF(AND(C2="A", E2="Y"), 20%, 0)
IN G2
=IF(AND(C2="B", E2="Y"), 13.5%, 0)

If you had the % in a cell in the header on there own, then you could use that cell for the %

I assume its the D column you want the % of
IN F2
=IF(AND(C2="A", E2="Y"), D2*0.2, 0)
IN G2
=IF(AND(C2="B", E2="Y"), D2*0.135, 0)
Thank you for the quick reply, I will give the above a go and let you know!
 
Upvote 0
i have changed the layout slightly - so the % is in a separate cell and then you can use that % and if will change all the values
Book3
ABCDEFG
1DateDeptCompanyNetVATableAB
2(Y/N)20%13.50%
33/19/21SalesA1000y2000
43/20/21SalesA10000y20000
53/21/21SalesA100n00
63/22/21Salesb100y013.5
73/23/21Salesb10y01.35
Sheet1
Cell Formulas
RangeFormula
F3:F7F3=IF(AND($C3="A", $E3="Y"), $D3*F$2, 0)
G3:G7G3=IF(AND($C3="B", $E3="Y"), $D3*G$2, 0)
 
Upvote 0
Hi,

Since etaf already suggested and created a different lay out, with etaf's lay out, we can also use F1:H1 for company reference:

Book3.xlsx
ABCDEFGH
1DateDeptCompanyNetVATableABC
2(Y/N)20%13.50%10%
33/19/2021SalesA1000y20000
43/20/2021SalesA10000y200000
53/21/2021SalesA100n000
63/22/2021Salesb100y013.50
73/23/2021Salesb10y01.350
83/19/2021SalesC5000Y00500
Sheet849
Cell Formulas
RangeFormula
F3:H8F3=IF(AND($C3=F$1,$E3="Y"),$D3*F$2,0)
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

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