Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Stumped by If Thens....
 
Posts: n/a
Default Trouble writing an excel formula...

Does anyone know the formula for "If between x & y, then z"? Someone's hourly
wage will be dependent upon three different ranges I will bill their time out
to clients.

If under X, then the hourly rate is $30
If between X and Y, then the hourly rate is $33
If over Y, then the hourly rate is $35
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=IF(A1<X,30,IF(A1<=Y, 33, 35))

In article ,
"Stumped by If Thens...." <Stumped by If
wrote:

Does anyone know the formula for "If between x & y, then z"? Someone's hourly
wage will be dependent upon three different ranges I will bill their time out
to clients.

If under X, then the hourly rate is $30
If between X and Y, then the hourly rate is $33
If over Y, then the hourly rate is $35

  #3   Report Post  
Arvi Laanemets
 
Posts: n/a
Default

Hi

With value to process in cell A1:
=30+3*(A1=X)+2*(A1Y)
Unlike using nested IF, you aren't limited with 7 nesting levels. And
probably it will work faster too.


Arvi Laanemets


"Stumped by If Thens...." <Stumped by If
wrote in message
...
Does anyone know the formula for "If between x & y, then z"? Someone's

hourly
wage will be dependent upon three different ranges I will bill their time

out
to clients.

If under X, then the hourly rate is $30
If between X and Y, then the hourly rate is $33
If over Y, then the hourly rate is $35



  #4   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Long before 7 nesting levels became an issue, I'd think one would want
to use a lookup. The simpler maintenance in most cases would trump
faster calculation...

In article ,
"Arvi Laanemets" wrote:

With value to process in cell A1:
=30+3*(A1=X)+2*(A1Y)
Unlike using nested IF, you aren't limited with 7 nesting levels. And
probably it will work faster too.

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 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
How to I use ** without Excel thinking I want to type a formula? Buff Excel Discussion (Misc queries) 2 December 22nd 04 09:31 PM
Converting an Excel formula to an Access query formula Adam Excel Discussion (Misc queries) 1 December 15th 04 03:38 AM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM
Excel 2003 - Formula result shows as 0:00 Serena Excel Worksheet Functions 4 November 11th 04 10:18 PM


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