Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF and Then Formula Help Needed Please

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is 5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF and Then Formula Help Needed Please

=IF(D3="","",LOOKUP(D3,{0,3,7,14},{4.62,5.54,6.46, 7.39}))


"Dimple" wrote:

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is 5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF and Then Formula Help Needed Please

First, Thank you for responding. But I'm not quite sure what the "" are
suppose to mean. I tried entering this as is and nothing came up.

"Teethless mama" wrote:

=IF(D3="","",LOOKUP(D3,{0,3,7,14},{4.62,5.54,6.46, 7.39}))


"Dimple" wrote:

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is 5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default IF and Then Formula Help Needed Please

"" is also known as double quotes. It just means blank cell, null, no data,
etc. You are saying, if the cell is blank, return a blank, otherwise do the
Lookup operation, which assigns the criteria in the first set of curly
brackets to the criteria in the second set of curly brackets. Just try a few
different scenarios and see the the results are. I think you will figure it
out pretty quickly.


Regards,
Ryan--

--
RyGuy


"Dimple" wrote:

First, Thank you for responding. But I'm not quite sure what the "" are
suppose to mean. I tried entering this as is and nothing came up.

"Teethless mama" wrote:

=IF(D3="","",LOOKUP(D3,{0,3,7,14},{4.62,5.54,6.46, 7.39}))


"Dimple" wrote:

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is 5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF and Then Formula Help Needed Please

"" is an empty string, and the first part of the formula is saying that if
D3 is empty, the result is empty.
Without that you can get problems with the lookup if you put an empty string
as the input to the lookup function.

What do you mean by "nothing came up"? Have you pasted the formula directly
from the NG into your formula bar, or have you mistyped it? What number do
you have in D3 and what result does your formula give?
--
David Biddulph

"Dimple" wrote in message
...
First, Thank you for responding. But I'm not quite sure what the "" are
suppose to mean. I tried entering this as is and nothing came up.

"Teethless mama" wrote:

=IF(D3="","",LOOKUP(D3,{0,3,7,14},{4.62,5.54,6.46, 7.39}))


"Dimple" wrote:

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's
column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is
less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is
5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service
are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default IF and Then Formula Help Needed Please

Thank you so much. I had just tried it to the one scenario I shouldn't have.
I applied to the correct info and it worked beautifully!! Thanks so much!!
Dimple

"David Biddulph" wrote:

"" is an empty string, and the first part of the formula is saying that if
D3 is empty, the result is empty.
Without that you can get problems with the lookup if you put an empty string
as the input to the lookup function.

What do you mean by "nothing came up"? Have you pasted the formula directly
from the NG into your formula bar, or have you mistyped it? What number do
you have in D3 and what result does your formula give?
--
David Biddulph

"Dimple" wrote in message
...
First, Thank you for responding. But I'm not quite sure what the "" are
suppose to mean. I tried entering this as is and nothing came up.

"Teethless mama" wrote:

=IF(D3="","",LOOKUP(D3,{0,3,7,14},{4.62,5.54,6.46, 7.39}))


"Dimple" wrote:

I need some assistance. Here's what I'm trying to do:
I have a column with years of service for all our employees, say it's
column
D. Column E needs to say what their accural rate for vacation time is
depending on their length of service. So if the years of service is
less than
3, accural is 4.62. If it's between 3 and 7 years, accural rate is
5.54. If
it's between 7 and 14 years, accural rate is 6.46. If years of service
are
greater then 14, accural rate is 7.39.
Here's what I have, but it's not working:
IF(D3<3,4.62),IF(3.1<D3<7,5.54),IF(7.1<D3<14,6.46) ,IF(14.1<D3,7.39)

Please help.
Thank you,
Dimple




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
FORMULA NEEDED Angie Excel Worksheet Functions 13 November 3rd 08 11:05 PM
Formula Needed Steven Sinclair Excel Discussion (Misc queries) 7 October 19th 06 10:53 PM
IF-THEN Formula help needed Brandty123 Excel Worksheet Functions 7 July 7th 06 12:05 AM
Formula needed audi Excel Discussion (Misc queries) 4 August 3rd 05 12:09 PM
formula needed Darrell New Users to Excel 6 May 5th 05 10:25 PM


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