#1   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 107
Default IS ERROR?

I'm using the following formula in date format. I need to amend the formula
so that if the result is a blank cell, the formula returns an answer of
"null" instead of 1/1/1900. I tried IF(ISERROR but it didn't work for me.


=INDEX(Hiring'!$T$4:$T$400,MATCH(B108,]Hiring'!$E$4:$E$400,0))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default IS ERROR?

Try this...

=if(isna(MATCH(B108,'Hiring'!$E$4:$E$400,0), "",
INDEX('Hiring'!$T$4:$T$400,MATCH(B108,'Hiring'!$E$ 4:$E$400,0))

ISNA is far preferable to iserror. Is error ignores all error including
#Ref. If your reference gets currupted you will never know it with iserror.
It will just look like a match was not found. If you have ever tried to debug
something like that you know how difficult it is. Any error handling you do
in a formula should be as specific as possible.
--
HTH...

Jim Thomlinson


"KC" wrote:

I'm using the following formula in date format. I need to amend the formula
so that if the result is a blank cell, the formula returns an answer of
"null" instead of 1/1/1900. I tried IF(ISERROR but it didn't work for me.


=INDEX(Hiring'!$T$4:$T$400,MATCH(B108,]Hiring'!$E$4:$E$400,0))

  #3   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 107
Default IS ERROR?

Thanks for your response Jim, the formula is giving me an error, that
highlights the quotes where you have ,"",. Any idea how to fix?

"Jim Thomlinson" wrote:

Try this...

=if(isna(MATCH(B108,'Hiring'!$E$4:$E$400,0), "",
INDEX('Hiring'!$T$4:$T$400,MATCH(B108,'Hiring'!$E$ 4:$E$400,0))

ISNA is far preferable to iserror. Is error ignores all error including
#Ref. If your reference gets currupted you will never know it with iserror.
It will just look like a match was not found. If you have ever tried to debug
something like that you know how difficult it is. Any error handling you do
in a formula should be as specific as possible.
--
HTH...

Jim Thomlinson


"KC" wrote:

I'm using the following formula in date format. I need to amend the formula
so that if the result is a blank cell, the formula returns an answer of
"null" instead of 1/1/1900. I tried IF(ISERROR but it didn't work for me.


=INDEX(Hiring'!$T$4:$T$400,MATCH(B108,]Hiring'!$E$4:$E$400,0))

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default IS ERROR?

missing a bracket or 2...

=if(isna(MATCH(B108,'Hiring'!$E$4:$E$400,0)), "",
INDEX('Hiring'!$T$4:$T$400,MATCH(B108,'Hiring'!$E$ 4:$E$400,0)))

--
HTH...

Jim Thomlinson


"KC" wrote:

Thanks for your response Jim, the formula is giving me an error, that
highlights the quotes where you have ,"",. Any idea how to fix?

"Jim Thomlinson" wrote:

Try this...

=if(isna(MATCH(B108,'Hiring'!$E$4:$E$400,0), "",
INDEX('Hiring'!$T$4:$T$400,MATCH(B108,'Hiring'!$E$ 4:$E$400,0))

ISNA is far preferable to iserror. Is error ignores all error including
#Ref. If your reference gets currupted you will never know it with iserror.
It will just look like a match was not found. If you have ever tried to debug
something like that you know how difficult it is. Any error handling you do
in a formula should be as specific as possible.
--
HTH...

Jim Thomlinson


"KC" wrote:

I'm using the following formula in date format. I need to amend the formula
so that if the result is a blank cell, the formula returns an answer of
"null" instead of 1/1/1900. I tried IF(ISERROR but it didn't work for me.


=INDEX(Hiring'!$T$4:$T$400,MATCH(B108,]Hiring'!$E$4:$E$400,0))

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
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


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