Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default IF Statement Help

Hi,

I have a resource spreadsheet that I'd like to automate as much as possible.

In Column "C" I have the supplier the column "E" I have the res rate, column
"F" I have the supplier rate and column "G" I have the charge rate.

Now based on the supplier there is a % mark up and when I do a single IF
statement it works. I'm having trouble linking them into a nested statement.
I would also like it to be a column based statement rather than a cell one..
is this possible?

This one works on it's own:
=IF(C77="Supplier1", (D77*11.11%)+D77, "0")

This is my nested one which doesn't work. (it's also cell based)
=IF(C77="Supplier1", (D77*11.11%)+D77,
(=if(C77="Supplier2",(D77*13.635%)+D77, (=if(C77="Supplier3",
(d77*5.26%)+D77, (=if(c77="Supplier4", (D77*0.02%)+D77, (=if(c77="Supplier5",
(d77*0.02%)+d77, "Nill")))))))))

Could someone help or give some tips.

Thank you.
Tracey
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default IF Statement Help

First, you don't use "=" when you nest functions, so:

=IF(C77="Supplier1", D77*(1 + 11.11%), IF(C77="Supplier2", D77*(1 +
13.635%), ...

but this is really where a lookup should be done. In a separate part of
the worksheet (or on a second worksheet, which could be hidden if
desired), enter:

J k
1 Supplier1 11.11%
2 Supplier2 13.635%
3 Supplier3 5.26%
4 Supplier4 0.02%
5 Supplier5 0.02%


Then use something like this function:

=IF(ISNA(MATCH(C77, J:J, FALSE)), "Nill", D77 * (1 + VLOOKUP(C77,
J:K, 2, FALSE)))



In article ,
RedDevil wrote:

Hi,

I have a resource spreadsheet that I'd like to automate as much as possible.

In Column "C" I have the supplier the column "E" I have the res rate, column
"F" I have the supplier rate and column "G" I have the charge rate.

Now based on the supplier there is a % mark up and when I do a single IF
statement it works. I'm having trouble linking them into a nested statement.
I would also like it to be a column based statement rather than a cell one..
is this possible?

This one works on it's own:
=IF(C77="Supplier1", (D77*11.11%)+D77, "0")

This is my nested one which doesn't work. (it's also cell based)
=IF(C77="Supplier1", (D77*11.11%)+D77,
(=if(C77="Supplier2",(D77*13.635%)+D77, (=if(C77="Supplier3",
(d77*5.26%)+D77, (=if(c77="Supplier4", (D77*0.02%)+D77, (=if(c77="Supplier5",
(d77*0.02%)+d77, "Nill")))))))))

Could someone help or give some tips.

Thank you.
Tracey

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default IF Statement Help

Thank you!

"JE McGimpsey" wrote:

First, you don't use "=" when you nest functions, so:

=IF(C77="Supplier1", D77*(1 + 11.11%), IF(C77="Supplier2", D77*(1 +
13.635%), ...

but this is really where a lookup should be done. In a separate part of
the worksheet (or on a second worksheet, which could be hidden if
desired), enter:

J k
1 Supplier1 11.11%
2 Supplier2 13.635%
3 Supplier3 5.26%
4 Supplier4 0.02%
5 Supplier5 0.02%


Then use something like this function:

=IF(ISNA(MATCH(C77, J:J, FALSE)), "Nill", D77 * (1 + VLOOKUP(C77,
J:K, 2, FALSE)))



In article ,
RedDevil wrote:

Hi,

I have a resource spreadsheet that I'd like to automate as much as possible.

In Column "C" I have the supplier the column "E" I have the res rate, column
"F" I have the supplier rate and column "G" I have the charge rate.

Now based on the supplier there is a % mark up and when I do a single IF
statement it works. I'm having trouble linking them into a nested statement.
I would also like it to be a column based statement rather than a cell one..
is this possible?

This one works on it's own:
=IF(C77="Supplier1", (D77*11.11%)+D77, "0")

This is my nested one which doesn't work. (it's also cell based)
=IF(C77="Supplier1", (D77*11.11%)+D77,
(=if(C77="Supplier2",(D77*13.635%)+D77, (=if(C77="Supplier3",
(d77*5.26%)+D77, (=if(c77="Supplier4", (D77*0.02%)+D77, (=if(c77="Supplier5",
(d77*0.02%)+d77, "Nill")))))))))

Could someone help or give some tips.

Thank you.
Tracey


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 help please Alan Davies Excel Worksheet Functions 1 May 11th 06 06:56 PM
If Statement PaulOakley Excel Discussion (Misc queries) 1 April 5th 06 01:05 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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