Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
martelie
 
Posts: n/a
Default vlookup with more than number to be retrieved


Roger, Thank you first of all for replying..
I could do the first bit.. "=B1&" | "&C1 "
but then with the vlookup formula..
do i type "=vlookup(a1,what table?, what is offset?, is 0 false?)

Any chance you could make it more clear. Im sure its crystal clear to
everyone else.. but i am dumb.

Martelie



Roger Govier Wrote:
Hi

One way
Insert a new column A and enter the following formula
=B1&" | "&C1 and copy down as far as your data extends.
You will now have unique "names" in your table but your table range
will
need to be extended to accommodate the new column

Carry out your lookup by
=VLOOKUP("John | 56789",Table,offset,0)


Regards

Roger Govier



martelie wrote:
-
I have a list of users and their corresponding mobile numbers. I also
have a bill list with names and the numbers being charged to the
names.
I have used vlookup to retrieve the number being charged to a person.
(a person who i have as having a number)
I use this to check that the correct number is being billed to a user.
However, some users are being billed twice for two different numbers,
but vlookup only shows me the first number they are being charged for.
Is there a way to see both numbers relating to a persons name?

eg

list 1
name number number being billed for(vlookup used for this)
john 12345 56789
paul 54321 54321

list 2
name number
john 56789
john 12345
paul 54321
chris 99999

so john appears twice, but i only see the first number he is being
charged to.. is there not a way for it to be

number being billed for: 56789, 12345 ?

any help or advice would be greatly appreciated.

Martelie



-



--
martelie
  #2   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Martelie

Supposing your original table was A1:C100.
If you have now inserted a new column C, so the table range would be
A1:D100 but the area that you would be concerned with would be C1:D100
as you would not need the A and B columns as they had been combined into
the new column C.

So, =VLOOKUP("John | 56789"Sheet1!C1:D100,2,0)

Change the sheet reference and range to suit.
The offset in the above is 2, which is telling Vlookup to take it from
the 2nd column of the table.
The 0 at the end is exactly the same as typing FALSE for the 4th parameter.

I hope this helps, but don't hesitate to post back if you need more
explanation. You are not "dumb" at all. Everyone has to go through the
learning curve, and we never do stop learning. If you want you can post
a copy of your sheet directly to me, (not to the Newsgroup please) by
removing the "nospam" from my email address.

Regards

Roger Govier



martelie wrote:

Roger, Thank you first of all for replying..
I could do the first bit.. "=B1&" | "&C1 "
but then with the vlookup formula..
do i type "=vlookup(a1,what table?, what is offset?, is 0 false?)

Any chance you could make it more clear. Im sure its crystal clear to
everyone else.. but i am dumb.

Martelie



Roger Govier Wrote:


Hi

One way
Insert a new column A and enter the following formula
=B1&" | "&C1 and copy down as far as your data extends.
You will now have unique "names" in your table but your table range
will
need to be extended to accommodate the new column

Carry out your lookup by
=VLOOKUP("John | 56789",Table,offset,0)


Regards

Roger Govier



martelie wrote:
-
I have a list of users and their corresponding mobile numbers. I also
have a bill list with names and the numbers being charged to the
names.
I have used vlookup to retrieve the number being charged to a person.
(a person who i have as having a number)
I use this to check that the correct number is being billed to a user.
However, some users are being billed twice for two different numbers,
but vlookup only shows me the first number they are being charged for.
Is there a way to see both numbers relating to a persons name?

eg

list 1
name number number being billed for(vlookup used for this)
john 12345 56789
paul 54321 54321

list 2
name number
john 56789
john 12345
paul 54321
chris 99999

so john appears twice, but i only see the first number he is being
charged to.. is there not a way for it to be

number being billed for: 56789, 12345 ?

any help or advice would be greatly appreciated.

Martelie



-






  #3   Report Post  
martelie
 
Posts: n/a
Default


Roger,
Thank you for all the help.

You know the first bit... "=B1&" | "&C1 " .. is it possible to combine
3 columns?

Martelie



Roger Govier Wrote:
Hi Martelie

Supposing your original table was A1:C100.
If you have now inserted a new column C, so the table range would be
A1:D100 but the area that you would be concerned with would be C1:D100
as you would not need the A and B columns as they had been combined
into
the new column C.

So, =VLOOKUP("John | 56789"Sheet1!C1:D100,2,0)

Change the sheet reference and range to suit.
The offset in the above is 2, which is telling Vlookup to take it from
the 2nd column of the table.
The 0 at the end is exactly the same as typing FALSE for the 4th
parameter.

I hope this helps, but don't hesitate to post back if you need more
explanation. You are not "dumb" at all. Everyone has to go through the
learning curve, and we never do stop learning. If you want you can
post
a copy of your sheet directly to me, (not to the Newsgroup please) by
removing the "nospam" from my email address.

Regards

Roger Govier



--
martelie
  #4   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Martelie

Yes, combine as many as you wish, subject to the limit of a formula not
exceeding 1024 characters.

Regards

Roger Govier



martelie wrote:

Roger,
Thank you for all the help.

You know the first bit... "=B1&" | "&C1 " .. is it possible to combine
3 columns?

Martelie



Roger Govier Wrote:


Hi Martelie

Supposing your original table was A1:C100.
If you have now inserted a new column C, so the table range would be
A1:D100 but the area that you would be concerned with would be C1:D100
as you would not need the A and B columns as they had been combined
into
the new column C.

So, =VLOOKUP("John | 56789"Sheet1!C1:D100,2,0)

Change the sheet reference and range to suit.
The offset in the above is 2, which is telling Vlookup to take it from
the 2nd column of the table.
The 0 at the end is exactly the same as typing FALSE for the 4th
parameter.

I hope this helps, but don't hesitate to post back if you need more
explanation. You are not "dumb" at all. Everyone has to go through the
learning curve, and we never do stop learning. If you want you can
post
a copy of your sheet directly to me, (not to the Newsgroup please) by
removing the "nospam" from my email address.

Regards

Roger Govier






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
Using Vlookup with validation Brian Excel Worksheet Functions 4 May 4th 23 03:43 AM
Master invoice number Christopher M. Excel Worksheet Functions 0 July 24th 05 04:26 PM
Question on Vlookup dharmik Excel Worksheet Functions 4 July 22nd 05 02:12 AM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM
Defining a number in a cell by text then subtracting it by the tex Crowraine Excel Worksheet Functions 1 December 16th 04 07:49 AM


All times are GMT +1. The time now is 10:12 AM.

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

About Us

"It's about Microsoft Excel"