Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default calculate tax based on y or N

I have a worksheet and I have a cell that calculates tax. the formula for
that cell works. but I want it to calculate the tax if in another cell i put
a y and to not calculate if I put a N. if I do say it non taxable I want a
value of $0.00 the tax cell is a currency format.

here is my tax formula (located in colum N) =SUM(C3,I3,E3,J3,)*8.5%
In Cloum M I want to put a "y" or "n" if it is taxable or not
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default calculate tax based on y or N

Change your tax formula to:
=SUM(C3,I3,E3,J3,)*IF(M3="y",8.5%,0)

Note that I'm assuming y/n are the only two possible choices (and if blank,
no tax).
If this is not the case, expand to:
=SUM(C3,I3,E3,J3,)*IF(M3="y",8.5%,IF(M3="n",0,What ValueNow))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"marsjune68" wrote:

I have a worksheet and I have a cell that calculates tax. the formula for
that cell works. but I want it to calculate the tax if in another cell i put
a y and to not calculate if I put a N. if I do say it non taxable I want a
value of $0.00 the tax cell is a currency format.

here is my tax formula (located in colum N) =SUM(C3,I3,E3,J3,)*8.5%
In Cloum M I want to put a "y" or "n" if it is taxable or not

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 16
Default calculate tax based on y or N

Thanks it works. Where is a good resource to really learn excel?

"Luke M" wrote:

Change your tax formula to:
=SUM(C3,I3,E3,J3,)*IF(M3="y",8.5%,0)

Note that I'm assuming y/n are the only two possible choices (and if blank,
no tax).
If this is not the case, expand to:
=SUM(C3,I3,E3,J3,)*IF(M3="y",8.5%,IF(M3="n",0,What ValueNow))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"marsjune68" wrote:

I have a worksheet and I have a cell that calculates tax. the formula for
that cell works. but I want it to calculate the tax if in another cell i put
a y and to not calculate if I put a N. if I do say it non taxable I want a
value of $0.00 the tax cell is a currency format.

here is my tax formula (located in colum N) =SUM(C3,I3,E3,J3,)*8.5%
In Cloum M I want to put a "y" or "n" if it is taxable or not

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default calculate tax based on y or N

"marsjune68" wrote:
I want it to calculate the tax if in another cell i put a y
and to not calculate if I put a N. if I do say it non taxable
I want a value of $0.00 the tax cell is a currency format.

here is my tax formula (located in colum N) =SUM(C3,I3,E3,J3,)*8.5%
In Cloum M I want to put a "y" or "n" if it is taxable or not


=if(M3="y", sum(C3,I3,E3,J3)*8.5%), 0)

formatted as Currency (click on Format Cells Number).

That is probably the easiest to understand and to apply to other similar
problems in the future. But alternatively:

=(M3="y") * sum(C3,I3,E3,J3)

FYI, you could replace SUM(C3,I3,E3,J3) with simply (C3+I3+E3+J3).
Generally, the fewer functions used, the better.

But SUM is useful if any of those cells might contain "", which is not
uncommon.


----- original message -----

"marsjune68" wrote in message
...
I have a worksheet and I have a cell that calculates tax. the formula for
that cell works. but I want it to calculate the tax if in another cell i
put
a y and to not calculate if I put a N. if I do say it non taxable I want
a
value of $0.00 the tax cell is a currency format.

here is my tax formula (located in colum N) =SUM(C3,I3,E3,J3,)*8.5%
In Cloum M I want to put a "y" or "n" if it is taxable or not


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
Calculate sum of values based on a ref value, how? Cam Excel Discussion (Misc queries) 4 February 22nd 08 02:58 PM
How do I calculate a value based on dates? JohnD Excel Discussion (Misc queries) 5 March 16th 07 11:54 AM
how to calculate based on dates? Jack B Excel Discussion (Misc queries) 3 November 15th 06 03:22 AM
calculate based on color redneck joe Excel Discussion (Misc queries) 6 July 13th 06 11:12 PM
How do I calculate the age of a subject based on their DOB? Gdm/kmf New Users to Excel 2 April 28th 06 08:37 PM


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

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

About Us

"It's about Microsoft Excel"