Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Nested Greater than or less than Formula

Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 52
Default Nested Greater than or less than Formula

What are you using to get the individual result?
--
Russell Dawson
Excel Student


"Bec G (Oz)" wrote:

Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Nested Greater than or less than Formula

Hi

Look at this:

=IF(A2=0,"",IF(A2<=30,"30 Days",IF(A2<=60,"60 Days",IF(A2<=90,"90
Days","120+ Days"))))

Regards,
Per


On 11 Feb., 04:53, Bec G (Oz)
wrote:
Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Nested Greater than or less than Formula

Try one of these...

=IF(A2=0,"",IF(A2<31,30,IF(A2<61,60,IF(A2<91,90,"1 20+")))&" days")

=IF(A2=0,"",LOOKUP(A2,{1;31;61;91},{30;60;90;"120+ "})&" days")

=IF(A2=0,"",IF(A290,"120+",CEILING(A2/30,1)*30)&" days")

Note that in each formula there is a space character after the &" just in
case line wrap removes it.

--
Biff
Microsoft Excel MVP


"Bec G (Oz)" wrote in message
...
Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default Nested Greater than or less than Formula

"Bec G (Oz)" wrote:
If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"


=LOOKUP(--A1,{0,1,31,61,91},
{"","30 days","60 days","90 days","120+ days"})

The "--" is needed in case A1 contains the null string ("") and only
appears to be blank.


----- original message -----

"Bec G (Oz)" wrote:
Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default Nested Greater than or less than Formula

"Joe User" <joeu2004 wrote:
=LOOKUP(--A1,{0,1,31,61,91},
{"","30 days","60 days","90 days","120+ days"})
The "--" is needed in case A1 contains the null string ("")
and only appears to be blank.


D'oh. The "--" does not handle that case correctly. I should have written:

=LOOKUP(N(A1),{0,1,31,61,91},
{"","30 days","60 days","90 days","120+ days"})


----- original message -----

"Joe User" <joeu2004 wrote in message
...
"Bec G (Oz)" wrote:
If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"


=LOOKUP(--A1,{0,1,31,61,91},
{"","30 days","60 days","90 days","120+ days"})

The "--" is needed in case A1 contains the null string ("") and only
appears to be blank.


----- original message -----

"Bec G (Oz)" wrote:
Hi was wondering if anyone can assist. I haev a column of data which has
number of days in them per below

EG in column A
25
10
70
156
65
125
155
2
45
30
20
156
61

And in the next column i want to put the following:

If column A is blank or zero then Column B is blank
If column A is between 1 and 30 Column B is "30 Days"
If column A is between 31 and 60 Column B is "60 Days"
If column A is between 61 and 90 Column B is "90 Days"
If column A is greater than 91 Column B is "120+ Days"

Any help is greatly appreciated as I can get each formula to work
individually just not all together

Thanks

Bec G



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
Nested Greater than or less than if statements charlie Excel Worksheet Functions 6 April 24th 23 07:46 PM
Formula greater than Mel[_2_] Excel Worksheet Functions 2 July 25th 08 09:41 PM
Nested If statement to find greater than but less than numbers Aaron Excel Worksheet Functions 3 November 10th 06 03:14 AM
Greater than Less than formula Help with Check Mark!! Excel Discussion (Misc queries) 3 August 22nd 06 07:05 PM
formula for Greater of C or D X E [email protected] Excel Discussion (Misc queries) 2 October 11th 05 07:26 PM


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