A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

vendor matches



 
 
Thread Tools Display Modes
  #1  
Old June 4th, 2010, 03:03 AM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default vendor matches

This is my first question on this site, so I hope I hope this makes sense.
I have vendor numbers in Col A-each vendor number would only be listed one
time and not in numeric order. In Col B-- I assigned a number beside each
vendor number in Col A. In column G, the same vendor numbers are listed but
they may be listed more than one time and not in order. What I would like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John
  #2  
Old June 4th, 2010, 05:52 AM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default vendor matches

1st post and well explained..

Use VLOOKUP(). In H1 use the below formula and copy down as required

=VLOOKUP(G1,A:B,2,0)

If no match is found; it will return an NA# error which can be handled as
below

=IF(ISNA(VLOOKUP(G1,A:B,2,0)),"",VLOOKUP(G1,A:B,2, 0))

--
Jacob (MVP - Excel)


"John" wrote:

This is my first question on this site, so I hope I hope this makes sense.
I have vendor numbers in Col A-each vendor number would only be listed one
time and not in numeric order. In Col B-- I assigned a number beside each
vendor number in Col A. In column G, the same vendor numbers are listed but
they may be listed more than one time and not in order. What I would like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John

  #3  
Old June 4th, 2010, 06:48 AM posted to microsoft.public.excel.worksheet.functions
Roger Govier[_8_]
external usenet poster
 
Posts: 338
Default vendor matches

Or avoiding the double lookup (hence marginally quicker)
for XL2003 and earlier
=IF(COUNTIF(A:A,G1),VLOOKUP(G1,A:B,2,0),"")
for XL2007
=IFERROR(VLOOKUP(G1,A:B,2,0),"")

--

Regards
Roger Govier

"Jacob Skaria" wrote in message
...
1st post and well explained..

Use VLOOKUP(). In H1 use the below formula and copy down as required

=VLOOKUP(G1,A:B,2,0)

If no match is found; it will return an NA# error which can be handled as
below

=IF(ISNA(VLOOKUP(G1,A:B,2,0)),"",VLOOKUP(G1,A:B,2, 0))

--
Jacob (MVP - Excel)


"John" wrote:

This is my first question on this site, so I hope I hope this makes
sense.
I have vendor numbers in Col A-each vendor number would only be listed
one
time and not in numeric order. In Col B-- I assigned a number beside
each
vendor number in Col A. In column G, the same vendor numbers are listed
but
they may be listed more than one time and not in order. What I would
like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John


__________ Information from ESET Smart Security, version of virus
signature database 5170 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 5170 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #4  
Old June 4th, 2010, 07:41 PM posted to microsoft.public.excel.worksheet.functions
Steve
external usenet poster
 
Posts: 2,662
Default vendor matches

Enter into H1
=IF(A1=G1,B1,"")
And copy this down as far as you need

Regards
Steve

"John" wrote:

This is my first question on this site, so I hope I hope this makes sense.
I have vendor numbers in Col A-each vendor number would only be listed one
time and not in numeric order. In Col B-- I assigned a number beside each
vendor number in Col A. In column G, the same vendor numbers are listed but
they may be listed more than one time and not in order. What I would like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John

  #5  
Old June 4th, 2010, 10:40 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default vendor matches

Excellent, it worked perfectly. Thanks and I look forward to figuring out
my next question.
--
John


"Jacob Skaria" wrote:

1st post and well explained..

Use VLOOKUP(). In H1 use the below formula and copy down as required

=VLOOKUP(G1,A:B,2,0)

If no match is found; it will return an NA# error which can be handled as
below

=IF(ISNA(VLOOKUP(G1,A:B,2,0)),"",VLOOKUP(G1,A:B,2, 0))

--
Jacob (MVP - Excel)


"John" wrote:

This is my first question on this site, so I hope I hope this makes sense.
I have vendor numbers in Col A-each vendor number would only be listed one
time and not in numeric order. In Col B-- I assigned a number beside each
vendor number in Col A. In column G, the same vendor numbers are listed but
they may be listed more than one time and not in order. What I would like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John

  #6  
Old June 4th, 2010, 10:40 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default vendor matches

Thanks, this answer also worked. I appreciate it.
--
John


"Roger Govier" wrote:

Or avoiding the double lookup (hence marginally quicker)
for XL2003 and earlier
=IF(COUNTIF(A:A,G1),VLOOKUP(G1,A:B,2,0),"")
for XL2007
=IFERROR(VLOOKUP(G1,A:B,2,0),"")

--

Regards
Roger Govier

"Jacob Skaria" wrote in message
...
1st post and well explained..

Use VLOOKUP(). In H1 use the below formula and copy down as required

=VLOOKUP(G1,A:B,2,0)

If no match is found; it will return an NA# error which can be handled as
below

=IF(ISNA(VLOOKUP(G1,A:B,2,0)),"",VLOOKUP(G1,A:B,2, 0))

--
Jacob (MVP - Excel)


"John" wrote:

This is my first question on this site, so I hope I hope this makes
sense.
I have vendor numbers in Col A-each vendor number would only be listed
one
time and not in numeric order. In Col B-- I assigned a number beside
each
vendor number in Col A. In column G, the same vendor numbers are listed
but
they may be listed more than one time and not in order. What I would
like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John


__________ Information from ESET Smart Security, version of virus
signature database 5170 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 5170 (20100603) __________

The message was checked by ESET Smart Security.

http://www.eset.com



  #7  
Old June 4th, 2010, 10:43 PM posted to microsoft.public.excel.worksheet.functions
John
external usenet poster
 
Posts: 2,649
Default vendor matches

Hi Steve, I do appreciate the help although I could not get this one to work
and maybe I was doing something wrong, however I do have my answer from the
post above
--
John


"Steve" wrote:

Enter into H1
=IF(A1=G1,B1,"")
And copy this down as far as you need

Regards
Steve

"John" wrote:

This is my first question on this site, so I hope I hope this makes sense.
I have vendor numbers in Col A-each vendor number would only be listed one
time and not in numeric order. In Col B-- I assigned a number beside each
vendor number in Col A. In column G, the same vendor numbers are listed but
they may be listed more than one time and not in order. What I would like to
do in Col H is if Col G has a match in Col A, I would like it to put the
corresponding number from Col B in Col H.

(Vendor#) (Vendor#)
Col A Col B Col G Col H
123411 1 196879
102312 2 108810
108810 3 108810
196879 4 105554
105554 5 102311

--
John

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.