lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I want a user to enter city name is cell H1 then excel will return the row number using Match(). What to do in case we have the lookup value matching many in a column. Thank you.
Enter city name H1= Toronto
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]name[/TD]
[TD="class: xl65, width: 64"]phone[/TD]
[TD="class: xl65, width: 64"]address[/TD]
[/TR]
[TR]
[TD="class: xl65"]mary1[/TD]
[TD="class: xl65"]62[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]john1[/TD]
[TD="class: xl65"]11[/TD]
[TD="class: xl65"]ottawa[/TD]
[/TR]
[TR]
[TD="class: xl65"]alex1[/TD]
[TD="class: xl65"]33[/TD]
[TD="class: xl65"]montreal[/TD]
[/TR]
[TR]
[TD="class: xl65"]adam1[/TD]
[TD="class: xl65"]66[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]linda1[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]ajax[/TD]
[/TR]
[TR]
[TD="class: xl65"]danny1[/TD]
[TD="class: xl65"]51[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]liz1[/TD]
[TD="class: xl65"]79[/TD]
[TD="class: xl65"]ottawa[/TD]
[/TR]
</tbody>[/TABLE]
I want a user to enter city name is cell H1 then excel will return the row number using Match(). What to do in case we have the lookup value matching many in a column. Thank you.
Enter city name H1= Toronto
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="class: xl65, width: 64"]name[/TD]
[TD="class: xl65, width: 64"]phone[/TD]
[TD="class: xl65, width: 64"]address[/TD]
[/TR]
[TR]
[TD="class: xl65"]mary1[/TD]
[TD="class: xl65"]62[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]john1[/TD]
[TD="class: xl65"]11[/TD]
[TD="class: xl65"]ottawa[/TD]
[/TR]
[TR]
[TD="class: xl65"]alex1[/TD]
[TD="class: xl65"]33[/TD]
[TD="class: xl65"]montreal[/TD]
[/TR]
[TR]
[TD="class: xl65"]adam1[/TD]
[TD="class: xl65"]66[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]linda1[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]ajax[/TD]
[/TR]
[TR]
[TD="class: xl65"]danny1[/TD]
[TD="class: xl65"]51[/TD]
[TD="class: xl65"]toronto[/TD]
[/TR]
[TR]
[TD="class: xl65"]liz1[/TD]
[TD="class: xl65"]79[/TD]
[TD="class: xl65"]ottawa[/TD]
[/TR]
</tbody>[/TABLE]