#1   Report Post  
Posted to microsoft.public.excel.misc
phill
 
Posts: n/a
Default IF Statement for VAT

Hi

I have a spreadsheet that i input prices onto and want to have the option of
specifying whether to apply VAT or not. i have 4 colums A,B,C,D. A is the
price of the part, B is either Y or N for VAT, C is the VAT amount and D is
the total with the part and VAT if applicable. is there an IF statement that
can generate this info if i put in the price and either Y or N for VAT?

Many Thanks

Phill
  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default IF Statement for VAT


Try

= if(B1 = "Y", A1+C1, A1)

in cell D1


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=551201

  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default IF Statement for VAT

=A1+IF(B1="Y",C1)

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"phill" wrote in message
...
Hi

I have a spreadsheet that i input prices onto and want to have the option

of
specifying whether to apply VAT or not. i have 4 colums A,B,C,D. A is

the
price of the part, B is either Y or N for VAT, C is the VAT amount and D

is
the total with the part and VAT if applicable. is there an IF statement

that
can generate this info if i put in the price and either Y or N for VAT?

Many Thanks

Phill



  #4   Report Post  
Posted to microsoft.public.excel.misc
Sandy Mann
 
Posts: n/a
Default IF Statement for VAT

Assuming that you want to calculate the VAT and it is 17.5% then in C2
enter:

=IF(UPPER(B2)="Y",ROUND(A2*17.5%,2),"")

and in D2:

=A2+IF(C2<"",C2,0)

If you perferyou can replace the "" with 0

--
HTH

Sandy
In Perth, the ancient capital of Scotland


with @tiscali.co.uk


"phill" wrote in message
...
Hi

I have a spreadsheet that i input prices onto and want to have the option
of
specifying whether to apply VAT or not. i have 4 colums A,B,C,D. A is
the
price of the part, B is either Y or N for VAT, C is the VAT amount and D
is
the total with the part and VAT if applicable. is there an IF statement
that
can generate this info if i put in the price and either Y or N for VAT?

Many Thanks

Phill



  #5   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme
 
Posts: n/a
Default IF Statement for VAT

Without IF
=A1+C1*(B1="Y")

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"phill" wrote in message
...
Hi

I have a spreadsheet that i input prices onto and want to have the option
of
specifying whether to apply VAT or not. i have 4 colums A,B,C,D. A is
the
price of the part, B is either Y or N for VAT, C is the VAT amount and D
is
the total with the part and VAT if applicable. is there an IF statement
that
can generate this info if i put in the price and either Y or N for VAT?

Many Thanks

Phill



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement that does nothing when false higherlimits Excel Discussion (Misc queries) 1 May 26th 06 06:11 PM
Returning Specific Cell Content using IF Statement weeclaire Excel Discussion (Misc queries) 0 February 17th 06 09:25 AM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM


All times are GMT +1. The time now is 06:41 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"