Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 358
Default Paramater driven value

How do I create a function to give a value to a calculation

Example:

Total number of errors 3
Number of clients signed 3
% errors to clients signed 100%

If the error rate is 0% the formula should calculate 100%
If the error rate is 0%<21% calculation should be 80%
If the error rate is 20%<41% calculation should be 60%
If the error rate is 40%<61% calculation should be 40%
If the error rate is 60%<80% calculation should be 20%
If the error rate is =/80% calculation should be 0%

I have tried IF but just get errors (still learing all these formulas)
--
Andrew
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Paramater driven value

=VLOOKUP(error_rate,{0,1;0.001,0.8;0.2,0.6;0.4,0.4 ;0.6,0.2;0.8,0},2,TRUE)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Andrew" wrote in message
...
How do I create a function to give a value to a calculation

Example:

Total number of errors 3
Number of clients signed 3
% errors to clients signed 100%

If the error rate is 0% the formula should calculate 100%
If the error rate is 0%<21% calculation should be 80%
If the error rate is 20%<41% calculation should be 60%
If the error rate is 40%<61% calculation should be 40%
If the error rate is 60%<80% calculation should be 20%
If the error rate is =/80% calculation should be 0%

I have tried IF but just get errors (still learing all these formulas)
--
Andrew



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 358
Default Paramater driven value

Thanks Bob!
--
Andrew


"Bob Phillips" wrote:

=VLOOKUP(error_rate,{0,1;0.001,0.8;0.2,0.6;0.4,0.4 ;0.6,0.2;0.8,0},2,TRUE)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Andrew" wrote in message
...
How do I create a function to give a value to a calculation

Example:

Total number of errors 3
Number of clients signed 3
% errors to clients signed 100%

If the error rate is 0% the formula should calculate 100%
If the error rate is 0%<21% calculation should be 80%
If the error rate is 20%<41% calculation should be 60%
If the error rate is 40%<61% calculation should be 40%
If the error rate is 60%<80% calculation should be 20%
If the error rate is =/80% calculation should be 0%

I have tried IF but just get errors (still learing all these formulas)
--
Andrew




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
Excel Web Query for Java Applet driven data website mingInv Excel Discussion (Misc queries) 1 August 25th 10 06:14 AM
How can I create a data driven org chart in excel Rob Thomas Excel Discussion (Misc queries) 0 April 5th 06 12:03 AM
Drawing driven database updates Kennard Excel Discussion (Misc queries) 1 February 13th 06 03:40 AM
Date driven formula/worksheet Corey Excel Discussion (Misc queries) 10 November 5th 05 12:43 AM
Naming Pivot Table Paramater Report Shrikant Excel Discussion (Misc queries) 3 August 25th 05 10:15 PM


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