#1   Report Post  
Junior Member
 
Posts: 3
Default If Function

Hello everyone,

I am trying to use if function however Nested If is limited to 7. How do I over come this. Here is the data

Date:
01/02/2016
01/02/2016
07/02/2020
07/02/2020
07/02/2015
02/02/2015
12/02/2015
12/02/2015
10/02/2017
01/02/2016
-----------
Maturity Bucket:
0 to 1 month 1-Mar-13
1 to 3 months 1-May-13
3 to 6 months 1-Aug-13
6 to 12 months 1-Feb-14
1 to 2 years 1-Feb-15
2 to 3 years 1-Feb-16
3 to 4 years 1-Feb-17
4 to 5 years 1-Feb-18
5 to 7 years 1-Feb-20
7+ years 2-Feb-20

Here is my formulae:
=if($U8<$AB$2,$AA$2,if($U8<$AB$3,$AA$3,if($U8<$AB$ 4,$AA$4,if($U8<$AB$5,$AA$5,if($U8<$AB$6,$AA$6,if($ U8<$AB$7,$AA$7,if($U8<$AB$8,$AA$8,if($U8<$AB$9,$AA $9,If($U8<$AB$10,$AA$10,if($U$8$AB$10-1,$AA$11))))))))))

I am trying to check condition and have use concatenate such as & but it still not working.
Here is the formulae for &:
=IF($U3<$AB$2,$AA$2,"") &IF($U3<$AB$3,$AA$3,"") &IF($U3<$AB$4,$AA$4,"") &IF($U3<$AB$5,$AA$5,"") &IF($U3<$AB$6,$AA$6,"") &IF($U3<$AB$7,$AA$7,"") &IF($U3<$AB$8,$AA$8,"") &IF($U3<$AB$9,$AA$9,"") &IF($U3<$AB$10,$AA$10,"") &IF($U3($AB$10-1),$AA$11,"")

Outcome which I don't want as below
2 to 3 years3 to 4 years4 to 5 years5 to 7 years

I just want if the condition falls within the Maturity Bucket, return with only One value where it applicable. ie; if 10/02/2017 should return as 3 - 4 years etc.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default If Function

I am trying to use if function however Nested If is limited to 7. How
do I over come this.


One way is to avoid using IF and instead use something like this:
=INDEX($AA$2:$AA$11,MATCH($U3,$AB$2:$AB$11,1))

Hope this helps getting started.
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
User Function Question: Collect Condition in Dialog Box - But How toInsert into Function Equation? SteveM Excel Programming 1 January 3rd 08 03:45 PM
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Excel - User Defined Function Error: This function takes no argume BruceInCalgary Excel Programming 3 August 23rd 06 08:53 PM
User-Defined Function pre-empting Built-in Function? How to undo???? MarWun Excel Programming 1 August 6th 03 09:31 PM


All times are GMT +1. The time now is 12:25 AM.

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"