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

How would I put this together as a nested IF statement? It's evaluating 4
cells (which only 1 cell would contain data).
0-30
=IF(L2<30,"0-30","")
31-60
=IF(AND(L2=31,L2<=60),"31-60","")
61-90
=IF(AND(L2=61,L2<=90),"61-90","")
91
=IF(L291,"91","")

I want the AGE column to contain the if statement. So it looks to find
which field that contains the values and places it under the AGE column.

Age 0-30 31-60 61-90 91
91 91
91 91
61-90 61-90
61-90 61-90
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default Nested IF Statement Help

1. Assuming Age is in L2 put this in AGE column row 2
=IF(L2<31,"0-30",IF(AND(L2=31,L2<=60),"31-60",IF(AND(L2=61,L2<=90),"61-90", IF(L291,"90","ERROR"))))
This will put the correct range for any given age...
(I corrected the boundary conditions, you may check them again)
You do not need to have the four columns

2. If you already have data in the four columns say B-E
then you can simple put in the AGE column row 2
B2&C2&D2&E2 since three cells are blank and one contains the correct value
you will get the right result


"Donnie" wrote:

How would I put this together as a nested IF statement? It's evaluating 4
cells (which only 1 cell would contain data).
0-30
=IF(L2<30,"0-30","")
31-60
=IF(AND(L2=31,L2<=60),"31-60","")
61-90
=IF(AND(L2=61,L2<=90),"61-90","")
91
=IF(L291,"91","")

I want the AGE column to contain the if statement. So it looks to find
which field that contains the values and places it under the AGE column.

Age 0-30 31-60 61-90 91
91 91
91 91
61-90 61-90
61-90 61-90

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Nested IF Statement Help

Let me correct something from down below. The current if statements I used
evaluate a Column of data called DAYS OUTSTANDING (column L). So I want to
nest the if statements for the AGE column (M).

DOS Age
132 91
97 91
84 61-90
83 61-90
83 61-90
83 61-90
83 61-90
53 31-60


"Donnie" wrote:

How would I put this together as a nested IF statement? It's evaluating 4
cells (which only 1 cell would contain data).
0-30
=IF(L2<30,"0-30","")
31-60
=IF(AND(L2=31,L2<=60),"31-60","")
61-90
=IF(AND(L2=61,L2<=90),"61-90","")
91
=IF(L291,"91","")

I want the AGE column to contain the if statement. So it looks to find
which field that contains the values and places it under the AGE column.

Age 0-30 31-60 61-90 91
91 91
91 91
61-90 61-90
61-90 61-90

  #4   Report Post  
Posted to microsoft.public.excel.misc
Art Art is offline
external usenet poster
 
Posts: 587
Default Nested IF Statement Help

You did very well, just you have to nest it like this:

=IF(L2<30,"0-30",IF(AND(L2=31,L2<=60),"31-60",IF(AND(L2=61,L2<=90),"61-90",IF(L291,"91","")

Let me know if it works.

Good Luck.



"Donnie" wrote:

How would I put this together as a nested IF statement? It's evaluating 4
cells (which only 1 cell would contain data).
0-30
=IF(L2<30,"0-30","")
31-60
=IF(AND(L2=31,L2<=60),"31-60","")
61-90
=IF(AND(L2=61,L2<=90),"61-90","")
91
=IF(L291,"91","")

I want the AGE column to contain the if statement. So it looks to find
which field that contains the values and places it under the AGE column.

Age 0-30 31-60 61-90 91
91 91
91 91
61-90 61-90
61-90 61-90

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Nested IF Statement Help

Thanks Art and Sheeloo. Both of you solved my issue.

"art" wrote:

You did very well, just you have to nest it like this:

=IF(L2<30,"0-30",IF(AND(L2=31,L2<=60),"31-60",IF(AND(L2=61,L2<=90),"61-90",IF(L291,"91","")

Let me know if it works.

Good Luck.



"Donnie" wrote:

How would I put this together as a nested IF statement? It's evaluating 4
cells (which only 1 cell would contain data).
0-30
=IF(L2<30,"0-30","")
31-60
=IF(AND(L2=31,L2<=60),"31-60","")
61-90
=IF(AND(L2=61,L2<=90),"61-90","")
91
=IF(L291,"91","")

I want the AGE column to contain the if statement. So it looks to find
which field that contains the values and places it under the AGE column.

Age 0-30 31-60 61-90 91
91 91
91 91
61-90 61-90
61-90 61-90



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 IF statement PattiP Excel Worksheet Functions 4 January 23rd 07 10:56 PM
Nested if statement burl_h Excel Worksheet Functions 3 December 16th 06 06:35 PM
how to do a nested if statement Analyst Excel Discussion (Misc queries) 3 November 27th 06 11:22 PM
Nested if then else statement tzip123 Excel Worksheet Functions 8 February 24th 06 05:38 PM
Nested If statement Jock W Excel Worksheet Functions 3 March 22nd 05 06:56 PM


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