#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Index, Match

=IF(A25=9,"",INDEX(CLM10000!$A$1:$R$640,MATCH(Shee t1!H25,CLM10000!$B$1:$B$640,0),MATCH(Sheet1!$BX$6, CLM10000!$A$1:$R$1,0)))

Normally this works very well. The one problem I have experienced is when
the Index, Match portion references an empty cell. What do I need to add to
have this situation return "0". This way (my hope is) that subsequent
calculations won't return #value! errors. I understand =IF(A25=9,"" will
return a blank cell, however if this is the case then that cell would not be
used in any subsequent calculations.

Thanks Again!

M.A.Tyler


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Index, Match

Not sure what you're looking for. If Index() references an empty cell,
the value returned *is* 0.


In article ,
M.A.Tyler <Great Lakes State wrote:

=IF(A25=9,"",INDEX(CLM10000!$A$1:$R$640,MATCH(Shee t1!H25,CLM10000!$B$1:$B$640,
0),MATCH(Sheet1!$BX$6,CLM10000!$A$1:$R$1,0)))

Normally this works very well. The one problem I have experienced is when
the Index, Match portion references an empty cell. What do I need to add to
have this situation return "0". This way (my hope is) that subsequent
calculations won't return #value! errors. I understand =IF(A25=9,"" will
return a blank cell, however if this is the case then that cell would not be
used in any subsequent calculations.

Thanks Again!

M.A.Tyler

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 100
Default Index, Match

In this case index returns "", when it references an empty cell. Is it
possible for it to return "0"? Or is it possible for the empty cell to be
used in subsequent calculations? Currently if I use the empty cell the next
mathmatical formula returns "#value!"

"JE McGimpsey" wrote:

Not sure what you're looking for. If Index() references an empty cell,
the value returned *is* 0.


In article ,
M.A.Tyler <Great Lakes State wrote:

=IF(A25=9,"",INDEX(CLM10000!$A$1:$R$640,MATCH(Shee t1!H25,CLM10000!$B$1:$B$640,
0),MATCH(Sheet1!$BX$6,CLM10000!$A$1:$R$1,0)))

Normally this works very well. The one problem I have experienced is when
the Index, Match portion references an empty cell. What do I need to add to
have this situation return "0". This way (my hope is) that subsequent
calculations won't return #value! errors. I understand =IF(A25=9,"" will
return a blank cell, however if this is the case then that cell would not be
used in any subsequent calculations.

Thanks Again!

M.A.Tyler


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Index, Match

Then your empty cell isn't really empty - it contains a null string. In
which case you could wrap the INDEX(...) with SUM(), since it ignores
text:

=IF(A25=9,"",SUM(INDEX(...)))

In article ,
M.A.Tyler <Great Lakes State wrote:

In this case index returns "", when it references an empty cell. Is it
possible for it to return "0"? Or is it possible for the empty cell to be
used in subsequent calculations? Currently if I use the empty cell the next
mathmatical formula returns "#value!"

  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Index, Match

From playing around, it appears Index will return 0 when it references a cell
that is truly empty. Therefore, I suspect your Index function is referencing
a cell that contains the null string (ie "" - perhaps the result of an If
function?).

If so, another thing you could consider is to modify your functions that are
upstream of your Index function to return 0 instead of "" and change the
number format to custom and use something like

#,###;-#,###;;

so that 0 values will appear blank, but the cell value is still 0 for the
benefit of your dependent fomulae.

Perhaps not the quickest fix for your current situation, but something to
keep in mind for future projects.

"M.A.Tyler" wrote:

In this case index returns "", when it references an empty cell. Is it
possible for it to return "0"? Or is it possible for the empty cell to be
used in subsequent calculations? Currently if I use the empty cell the next
mathmatical formula returns "#value!"

"JE McGimpsey" wrote:

Not sure what you're looking for. If Index() references an empty cell,
the value returned *is* 0.


In article ,
M.A.Tyler <Great Lakes State wrote:

=IF(A25=9,"",INDEX(CLM10000!$A$1:$R$640,MATCH(Shee t1!H25,CLM10000!$B$1:$B$640,
0),MATCH(Sheet1!$BX$6,CLM10000!$A$1:$R$1,0)))

Normally this works very well. The one problem I have experienced is when
the Index, Match portion references an empty cell. What do I need to add to
have this situation return "0". This way (my hope is) that subsequent
calculations won't return #value! errors. I understand =IF(A25=9,"" will
return a blank cell, however if this is the case then that cell would not be
used in any subsequent calculations.

Thanks Again!

M.A.Tyler




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
index match & NA denise Excel Worksheet Functions 10 May 2nd 07 12:11 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Index, Match, Sum ?? fastballfreddy Excel Discussion (Misc queries) 3 May 9th 06 09:02 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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