#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formulas

Okay...I measure for carpet and hardwood floor and have created a spreadsheet
to calculate the costs for me. The problem I am having is that there are
variables within a cell. For example, we charge either $4, $4.25, $4.50 or
$5.00 per yard per install. I would like to be able to put in a, b, c, or d
and have it calculate the cost associated with that letter. Also, there is
always a shipping charge but only sometimes a padding charge. I am on the
border of 2 states, so the tax changes based on that. Are there simple
formulas that can calculate these items?

Thanks!
--
Sharri Jinnah
Carpet Direct
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formulas

=E1*(CHOOSE(CODE(A1)-96,4,4.25,4.5,5)*B1+C1+D1)

Where A1 contains the code for price by yard either a or b or c or d
Where B1 contains the number of yards
Where C1conains the shipping charge
Where D1 contains the paddding charge
--
Gary''s Student - gsnu200737
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Formulas

If you put a, b, c or d in A1, then this formula will return the rate
per yard:

=CHOOSE(CODE(A1)-96,4,4.25,4.5,5)

As for your other queries, you can have simple codes like Y or N in a
column (eg E) for padding charges and a formula like:

=IF(E1="Y",chg,0)

where chg is your padding charge (or rate, to be multiplied by the
area), and a formula like:

=IF(G1="state_1",x,y)

where G contains the state and x is the tax rate for state_1 and y is
the tax rate for the other state.

Hope this helps.

Pete


On Aug 14, 1:26 am, Sharri wrote:
Okay...I measure for carpet and hardwood floor and have created a spreadsheet
to calculate the costs for me. The problem I am having is that there are
variables within a cell. For example, we charge either $4, $4.25, $4.50 or
$5.00 per yard per install. I would like to be able to put in a, b, c, or d
and have it calculate the cost associated with that letter. Also, there is
always a shipping charge but only sometimes a padding charge. I am on the
border of 2 states, so the tax changes based on that. Are there simple
formulas that can calculate these items?

Thanks!
--
Sharri Jinnah
Carpet Direct



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formulas

Pete, Can I send this file to you for review? I've added comments for
better explanation... :)
--
Sharri Jinnah
Carpet Direct


"Pete_UK" wrote:

If you put a, b, c or d in A1, then this formula will return the rate
per yard:

=CHOOSE(CODE(A1)-96,4,4.25,4.5,5)

As for your other queries, you can have simple codes like Y or N in a
column (eg E) for padding charges and a formula like:

=IF(E1="Y",chg,0)

where chg is your padding charge (or rate, to be multiplied by the
area), and a formula like:

=IF(G1="state_1",x,y)

where G contains the state and x is the tax rate for state_1 and y is
the tax rate for the other state.

Hope this helps.

Pete


On Aug 14, 1:26 am, Sharri wrote:
Okay...I measure for carpet and hardwood floor and have created a spreadsheet
to calculate the costs for me. The problem I am having is that there are
variables within a cell. For example, we charge either $4, $4.25, $4.50 or
$5.00 per yard per install. I would like to be able to put in a, b, c, or d
and have it calculate the cost associated with that letter. Also, there is
always a shipping charge but only sometimes a padding charge. I am on the
border of 2 states, so the tax changes based on that. Are there simple
formulas that can calculate these items?

Thanks!
--
Sharri Jinnah
Carpet Direct




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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 02:20 AM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


All times are GMT +1. The time now is 07:49 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"