Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi everyone,
I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Use ISNA() and IF()
=IF(ISNA(MATCH($N$1,BuildingNo,0)),"",INDEX(EMP200 9, MATCH($N$1,BuildingNo,0))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Jacob,
Thanks for replying :-) I'm still getting a zero. Does it make any differnce to know that, BuildingNo will always have a number but Emp2009 sometimes has a value but sometimes is empty? This confirms that I haven't really got INDEX and MATCH :-) Cheers Diddy "Jacob Skaria" wrote: Use ISNA() and IF() =IF(ISNA(MATCH($N$1,BuildingNo,0)),"",INDEX(EMP200 9, MATCH($N$1,BuildingNo,0))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try the below
=IF(ISNA(MATCH($N$1,BuildingNo,0)),"", IF(INDEX(EMP2009,MATCH($N$1,BuildingNo,0))="","", INDEX(EMP2009,MATCH($N$1,BuildingNo,0)))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi Jacob, Thanks for replying :-) I'm still getting a zero. Does it make any differnce to know that, BuildingNo will always have a number but Emp2009 sometimes has a value but sometimes is empty? This confirms that I haven't really got INDEX and MATCH :-) Cheers Diddy "Jacob Skaria" wrote: Use ISNA() and IF() =IF(ISNA(MATCH($N$1,BuildingNo,0)),"",INDEX(EMP200 9, MATCH($N$1,BuildingNo,0))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the value being retunred is TEXT you can reduce that to:
=IF(ISNA(MATCH($N$1,BuildingNo,0)),"", T(INDEX(EMP2009,MATCH($N$1,BuildingNo,0)))) -- Biff Microsoft Excel MVP "Jacob Skaria" wrote in message ... Try the below =IF(ISNA(MATCH($N$1,BuildingNo,0)),"", IF(INDEX(EMP2009,MATCH($N$1,BuildingNo,0))="","", INDEX(EMP2009,MATCH($N$1,BuildingNo,0)))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi Jacob, Thanks for replying :-) I'm still getting a zero. Does it make any differnce to know that, BuildingNo will always have a number but Emp2009 sometimes has a value but sometimes is empty? This confirms that I haven't really got INDEX and MATCH :-) Cheers Diddy "Jacob Skaria" wrote: Use ISNA() and IF() =IF(ISNA(MATCH($N$1,BuildingNo,0)),"",INDEX(EMP200 9, MATCH($N$1,BuildingNo,0))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Jacob,
Just the job! :-) Thank you so much!! Cheers Diddy "Jacob Skaria" wrote: Try the below =IF(ISNA(MATCH($N$1,BuildingNo,0)),"", IF(INDEX(EMP2009,MATCH($N$1,BuildingNo,0))="","", INDEX(EMP2009,MATCH($N$1,BuildingNo,0)))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi Jacob, Thanks for replying :-) I'm still getting a zero. Does it make any differnce to know that, BuildingNo will always have a number but Emp2009 sometimes has a value but sometimes is empty? This confirms that I haven't really got INDEX and MATCH :-) Cheers Diddy "Jacob Skaria" wrote: Use ISNA() and IF() =IF(ISNA(MATCH($N$1,BuildingNo,0)),"",INDEX(EMP200 9, MATCH($N$1,BuildingNo,0))) If this post helps click Yes --------------- Jacob Skaria "Diddy" wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
would:
=IF(ISERROR(INDEX(EMP2009,MATCH($N$1,BuildingNo,0) )),"",INDEX (EMP2009,MATCH($N$1,BuildingNo,0))) help? On 3 Lis, 12:04, Diddy wrote: Hi everyone, I'm using the following formula to get data from a table =INDEX(EMP2009,MATCH($N$1,BuildingNo,0)) If there is no data matching the building number and employee data in the appropriate row of EMP2009, then I'd like the formula to return a blank. I'm getting all tied up trying to add an if statement and it would be fantastic if anyone could help. Cheers Diddy |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Index/match - make blank cells return a blank value. | Excel Worksheet Functions | |||
index, Match statement | Excel Worksheet Functions | |||
index(match) Wind Uplift Calculations (match four conditions) | Excel Worksheet Functions | |||
Sum within an Index Match Statement | Excel Discussion (Misc queries) | |||
index match with blank entries | Excel Worksheet Functions |