Thread: List Query
View Single Post
  #5   Report Post  
Max
 
Posts: n/a
Default

A6:A57 (Is the list of Employee Names)
B6:B57 (Is the Employee ID Number)

F7 (To enter the Employee ID Number required, then when it matches any
number in B6:B57, then the Employee Name appears. Also note that F7 is
located to another sheet within that File.)


Think you've switched the columns A & B around in the descript above,
compared to what was inferred in your orig. post <g

Try in say, G7 (on the same sheet as the input cell F7), either:
=INDEX('Allowances Summary'!$A$6:$A$57,MATCH(F7,'Allowances
Summary'!$B$6:$B$57,0))

or, with the error trap:
=IF(ISNA(MATCH(F7,'Allowances Summary'!$B$6:$B$57,0)),"",INDEX('Allowances
Summary'!$A$6:$A$57,MATCH(F7,'Allowances Summary'!$B$6:$B$57,0)))

If you still get no matches where there obviously should be, one guess is
that the employee id numbers in: 'Allowances Summary'!$B$6:$B$57
are text numbers while those entered in F7 are real numbers, thus throwing
the matching off.

Try this to convert: 'Allowances Summary'!$B$6:$B$57 to real numbers. Select
any empty cell and copy it. Then select / right-click on the range:
'Allowances Summary'!$B$6:$B$57 and choose Paste Special Check "Add" OK.
This operation will convert all the text numbers to real numbers for proper
matching. Try the above, let us know how it goes.

--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"aries0070" wrote
in message ...

Thank you guys for your immediate reply, but it gave me a blank that
means it didn't found anything matches that I required.

For more explanation about my request is:

A6:A57 (Is the list of Employee Names)
B6:B57 (Is the Employee ID Number)

F7 (To enter the Employee ID Number required, then when it matches any
number in B6:B57, then the Employee Name appears. Also note that F7 is
located to another sheet within that File.)

It is like using "Query" in MS Access.


--
aries0070
------------------------------------------------------------------------
aries0070's Profile:

http://www.excelforum.com/member.php...o&userid=25077
View this thread: http://www.excelforum.com/showthread...hreadid=385937