Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
N Dependable
 
Posts: n/a
Default IF formula for 13 plus variables

I am building a price sheet that I need to come up with a formula that can
figure a material coat if the part is one of 13 different types of material.
I want to be able to update my material pricing on sheet 2 andd have the
sheet recalculate it automaticly for each part.
I have "A" column as Material type(abreviation like SS for stainless steel),
"B" column as weight of the part, and Sheet 2 column "A" as the price for the
material. My formula (column C")looks like : =IF(A1="SS",B1*sheet2!A1,.....)
and so forth for each of the 13 types of material. I can get it to work for
the first eight types of material but anything past that it gives me an
error. I also would like to display "error" in the cell if someone does not
enter the material abbreviation correctly .
Any help would be greatly appreciated. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Elkar
 
Posts: n/a
Default IF formula for 13 plus variables

Here is what I would suggest:

On Sheet 2, list all of your materials in Column A and corresponding prices
in column B.

Now, for your formula in Column C of Sheet 1:

=IF(ISERROR(VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE) *B1),"Error",VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE )*B1)

I just assumed 100 rows in this example, you may have more or less. Adjust
accordingly.

HTH,
Elkar

"N Dependable" wrote:

I am building a price sheet that I need to come up with a formula that can
figure a material coat if the part is one of 13 different types of material.
I want to be able to update my material pricing on sheet 2 andd have the
sheet recalculate it automaticly for each part.
I have "A" column as Material type(abreviation like SS for stainless steel),
"B" column as weight of the part, and Sheet 2 column "A" as the price for the
material. My formula (column C")looks like : =IF(A1="SS",B1*sheet2!A1,.....)
and so forth for each of the 13 types of material. I can get it to work for
the first eight types of material but anything past that it gives me an
error. I also would like to display "error" in the cell if someone does not
enter the material abbreviation correctly .
Any help would be greatly appreciated. Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default IF formula for 13 plus variables

Hi!

Here's another way to write that formula:

=IF(COUNTIF(Sheet2!A$1:A$100,A1),VLOOKUP(A1,Sheet2 !A$1:B$100,2,0)*B1),"Error")

Biff

"Elkar" wrote in message
...
Here is what I would suggest:

On Sheet 2, list all of your materials in Column A and corresponding
prices
in column B.

Now, for your formula in Column C of Sheet 1:

=IF(ISERROR(VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE) *B1),"Error",VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE )*B1)

I just assumed 100 rows in this example, you may have more or less.
Adjust
accordingly.

HTH,
Elkar

"N Dependable" wrote:

I am building a price sheet that I need to come up with a formula that
can
figure a material coat if the part is one of 13 different types of
material.
I want to be able to update my material pricing on sheet 2 andd have the
sheet recalculate it automaticly for each part.
I have "A" column as Material type(abreviation like SS for stainless
steel),
"B" column as weight of the part, and Sheet 2 column "A" as the price for
the
material. My formula (column C")looks like :
=IF(A1="SS",B1*sheet2!A1,.....)
and so forth for each of the 13 types of material. I can get it to work
for
the first eight types of material but anything past that it gives me an
error. I also would like to display "error" in the cell if someone does
not
enter the material abbreviation correctly .
Any help would be greatly appreciated. Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
N Dependable
 
Posts: n/a
Default IF formula for 13 plus variables

Thank you Thank you Thank you!!!!!!!!
--
Nathan Hovious


"Elkar" wrote:

Here is what I would suggest:

On Sheet 2, list all of your materials in Column A and corresponding prices
in column B.

Now, for your formula in Column C of Sheet 1:

=IF(ISERROR(VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE) *B1),"Error",VLOOKUP(A1,Sheet2!$A$1:$B$100,2,FALSE )*B1)

I just assumed 100 rows in this example, you may have more or less. Adjust
accordingly.

HTH,
Elkar

"N Dependable" wrote:

I am building a price sheet that I need to come up with a formula that can
figure a material coat if the part is one of 13 different types of material.
I want to be able to update my material pricing on sheet 2 andd have the
sheet recalculate it automaticly for each part.
I have "A" column as Material type(abreviation like SS for stainless steel),
"B" column as weight of the part, and Sheet 2 column "A" as the price for the
material. My formula (column C")looks like : =IF(A1="SS",B1*sheet2!A1,.....)
and so forth for each of the 13 types of material. I can get it to work for
the first eight types of material but anything past that it gives me an
error. I also would like to display "error" in the cell if someone does not
enter the material abbreviation correctly .
Any help would be greatly appreciated. Thanks.

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
Is it possible? DakotaNJ Excel Worksheet Functions 25 September 18th 06 09:30 PM
Creating a formula that will SUM with 2 Variables B Akers Excel Worksheet Functions 2 March 28th 06 06:34 AM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
How to use array formula for three variables? MelissaS Excel Discussion (Misc queries) 2 January 20th 05 01:16 PM


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

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"