LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Nested 'If" stmts

I tried to be as detailed as possible:
I have version 2002 SP3

Can someone provide me a suggestion on formulas for the following:

Scenario - Steve and Joe have red, green, yellow and blue widgets. Each
widget weighs either 1,2,3 or 4 ounces. The price of the widget is based on
all three variables i.e a 1 ounce red widget owned by Steve has a different
cost then a 1 ounce red widget owned by Joe.

So, what I need are formulas that will populate cells with the correct
prices based on these variables. Ex: Steve owns six - 1 ounce red widgets.
Column A contains the name of the owner (Steve / Joe)
Column B contains the color of the widget.
Column C contains the weight of the widget (1,2,3,4 ozs).
Column D contains the number of widgets.

Based on how the formulas could work, I don't mind having separate columns
for the results for the different colors of widgets.
For example, if column E was the column to capture the cost for the red
widgets, the formula should give the answer to: If cloumn A = Steve and if
Column B = red, and if column C = 1, then the result in Column E should be
the amount in column D times $2 (cost of a 1 ounce red widget owned by
Steve), however, if cloumn A = Steve and if Column B = red, and if column C =
2, then the result in Column E should be the amount in column D times $4
(cost of a 2 ounce red widget owned by Steve), however, if cloumn A = Steve
and if Column B = red, and if column C = 3, then the result in Column E
should be the amount in column D times $6 (cost of a 3 ounce red widget owned
by Steve) however, if cloumn A = Steve and if Column B = red, and if column C
= 4, then the result in Column E should be the amount in column D times $8
(cost of a 4 ounce red widget owned by Steve) however If cloumn A = Joe and
if Column B = red, and if column C = 1, then the result in Column E should be
the amount in column D times $3 (cost of a 1 ounce red widget owned by Joe),
however, if cloumn A = Joe and if Column B = red, and if column C = 2, then
the result in Column E should be the amount in column D times $5 (cost of a 2
ounce red widget owned by Joe), however, if cloumn A = Joe and if Column B =
red, and if column C = 3, then the result in Column E should be the amount in
column D times $7 (cost of a 3 ounce red widget owned by Joe) however, if
cloumn A = Joe and if Column B = red, and if column C = 4, then the result in
Column E should be the amount in column D times $9 (cost of a 4 ounce red
widget owned by Joe)
Columns F, G and H could have the same formula but with a different color
for each column. I can sum the columns to get the value by color.

Tx,
Samoan
 
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
Creating macros with if stmts Lisa12 Excel Discussion (Misc queries) 3 July 15th 08 11:38 AM
Monthly bank stmts KathyT Excel Worksheet Functions 5 January 3rd 07 05:32 AM
Need more than 7 nested "IF" statements in Excel" James A Excel Discussion (Misc queries) 1 December 17th 06 02:02 AM
"How do I correct error in Excel2003 for nested subtotal?" Nimesh Excel Discussion (Misc queries) 1 February 23rd 06 08:23 AM
IF Statement that's conditional on multiple IF Stmts in other cell Pat Excel Worksheet Functions 1 March 26th 05 10:31 PM


All times are GMT +1. The time now is 06:31 AM.

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"