Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 577
Default Which function to use? Trying to ref a cell based on another.

Thank for your help Mr. Phillips. I appreciate you taking the time to help
me with my problem.

Have a great weekend !
-scott

"Bob Phillips" wrote:



"scott" wrote in message
...
Just trying to understand how Excel thinks when putting a formula
together.
I had another question about why the MATCH function was used twice.

Did you use the MATCH function in conjunction with ISNUMBER, to check to
ensure it returns a number ?



Yes. MATCH returns the index within the lookup set if it finds the value, or
#N/A if it doesn't. ISNUMBER is a simple way to test if the MATCH was
successful or not.



IF(ISNUMBER(MATCH(A3,Sheet2!$A:$A,0)),INDEX(Sheet2 !$H:$H,MATCH(A3,Sheet2!$A:$A,0)),"")

The way I'm reading the formula....

IF (it's a number) THEN (use the value in column H) that equals (the row
returned from the MATCH function). I'm guessing the double quotations at
the
end mean use its value or something.

Is that kind of how you'd read it ?



More or less. If the MATCH is successful, if passes that row index to the
INDEX function to get the corresponding value in H. If it fails,the double
quotes are used to retun an empty value, so it doesn't show #N/A in the
cell.


P.S. The formula you wrote did exactly what I was trying figure out. I
just want to make sure I understand how you came up with it.



No I get it, it's the only way to get better.



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
Function to give value of a BLANK cell based on another Haz Excel Worksheet Functions 2 July 17th 06 12:57 PM
format cell based on results of vlookup function Edith F Excel Worksheet Functions 1 July 21st 05 07:39 PM
Function to del rows based on cell value Reed Excel Worksheet Functions 1 June 7th 05 09:25 PM
Help with function to add percentage to cell based on checkbox. foxgguy2005 Excel Worksheet Functions 3 June 1st 05 05:52 AM
"count if" function based on value of another cell Anauna Excel Worksheet Functions 3 February 24th 05 06:33 PM


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