Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Old December 1st 04, 02:13 PM
Tom
 
Posts: n/a
Default Need help with modifying VLookUp

I need some help with modifying a VLOOKUP function.

I have the following data in cell range E1:G9.

Col_E Col_F Col_G
===== ===== =====
Richard 1 A
Richard 2 B
Richard 3 C
Sue 4 D
Sue 5 E
Sue 6 F
Tom 7 G
Tom 8 H
Tom 9 I


Cell A1 will have either one of the 3 names: Richard, Sue, Tom


Then, in cell range A15:B17, I want to show the associated values of either
name:
- F1:G3, or
- F4:G6, or
- F7:G9

So, if A1 = Sue, the I want to show the following in A15:B17:
4 D
5 E
6 F


Right now, I have the following VLOOKUP in A15, A16, and A17.
=IF($A$1="","",VLOOKUP($A$1,Sheet2!$E$1:$G$9,2,FAL SE))

and in B15, B16, B17
=IF($D$1="","",VLOOKUP($D$1,Sheet2!$E$1:$G$9,3,FAL SE))


Okay, here's my problem... when e.g. "Sue" (A1), then it's taking the 1st
occurance of "Sue" and cross-references it for all in range A15:B17. So,
right now, the results a
4 D
4 D
4 D

Again, how do I change the VLookup so I get (for "Sue")...
4 D
5 E
6 F


Thanks,
Tom


















  #2   Report Post  
Old December 1st 04, 02:34 PM
Jason Morin
 
Posts: n/a
Default

Put this in A15, press ctrl/shift/enter, and copy over
and down:

=INDEX(F$1:F$9,SMALL(IF($A$1=$E$1:$E$9,ROW($E$1:$E $9)),ROW
()-14))

HTH
Jason
Atlanta, GA

-----Original Message-----
I need some help with modifying a VLOOKUP function.

I have the following data in cell range E1:G9.

Col_E Col_F Col_G
===== ===== =====
Richard 1 A
Richard 2 B
Richard 3 C
Sue 4 D
Sue 5 E
Sue 6 F
Tom 7 G
Tom 8 H
Tom 9 I


Cell A1 will have either one of the 3 names: Richard,

Sue, Tom


Then, in cell range A15:B17, I want to show the

associated values of either
name:
- F1:G3, or
- F4:G6, or
- F7:G9

So, if A1 = Sue, the I want to show the following in

A15:B17:
4 D
5 E
6 F


Right now, I have the following VLOOKUP in A15, A16, and

A17.
=IF($A$1="","",VLOOKUP($A$1,Sheet2!$E$1:$G$9,2,FA LSE))

and in B15, B16, B17
=IF($D$1="","",VLOOKUP($D$1,Sheet2!$E$1:$G$9,3,FA LSE))


Okay, here's my problem... when e.g. "Sue" (A1), then

it's taking the 1st
occurance of "Sue" and cross-references it for all in

range A15:B17. So,
right now, the results a
4 D
4 D
4 D

Again, how do I change the VLookup so I get

(for "Sue")...
4 D
5 E
6 F


Thanks,
Tom

















.

  #3   Report Post  
Old December 1st 04, 05:28 PM
Alan Beban
 
Posts: n/a
Default

For a different approach for users who have the functions in the freely
downloadable file at http://home.pacbell.net/beban available to their
workbook, array enter into a 3x2 range

=VLookups(A1,E1:G9,{2,3})

Alan Beban

Tom wrote:
I need some help with modifying a VLOOKUP function.

I have the following data in cell range E1:G9.

Col_E Col_F Col_G
===== ===== =====
Richard 1 A
Richard 2 B
Richard 3 C
Sue 4 D
Sue 5 E
Sue 6 F
Tom 7 G
Tom 8 H
Tom 9 I


Cell A1 will have either one of the 3 names: Richard, Sue, Tom


Then, in cell range A15:B17, I want to show the associated values of either
name:
- F1:G3, or
- F4:G6, or
- F7:G9

So, if A1 = Sue, the I want to show the following in A15:B17:
4 D
5 E
6 F


Right now, I have the following VLOOKUP in A15, A16, and A17.
=IF($A$1="","",VLOOKUP($A$1,Sheet2!$E$1:$G$9,2,FAL SE))

and in B15, B16, B17
=IF($D$1="","",VLOOKUP($D$1,Sheet2!$E$1:$G$9,3,FAL SE))


Okay, here's my problem... when e.g. "Sue" (A1), then it's taking the 1st
occurance of "Sue" and cross-references it for all in range A15:B17. So,
right now, the results a
4 D
4 D
4 D

Again, how do I change the VLookup so I get (for "Sue")...
4 D
5 E
6 F


Thanks,
Tom

















  #4   Report Post  
Old December 2nd 04, 12:44 AM
Tom
 
Posts: n/a
Default

Thanks! That works great.

--
Thanks,
Tom


"Jason Morin" wrote in message
...
Put this in A15, press ctrl/shift/enter, and copy over
and down:

=INDEX(F$1:F$9,SMALL(IF($A$1=$E$1:$E$9,ROW($E$1:$E $9)),ROW
()-14))

HTH
Jason
Atlanta, GA

-----Original Message-----
I need some help with modifying a VLOOKUP function.

I have the following data in cell range E1:G9.

Col_E Col_F Col_G
===== ===== =====
Richard 1 A
Richard 2 B
Richard 3 C
Sue 4 D
Sue 5 E
Sue 6 F
Tom 7 G
Tom 8 H
Tom 9 I


Cell A1 will have either one of the 3 names: Richard,

Sue, Tom


Then, in cell range A15:B17, I want to show the

associated values of either
name:
- F1:G3, or
- F4:G6, or
- F7:G9

So, if A1 = Sue, the I want to show the following in

A15:B17:
4 D
5 E
6 F


Right now, I have the following VLOOKUP in A15, A16, and

A17.
=IF($A$1="","",VLOOKUP($A$1,Sheet2!$E$1:$G$9,2,F ALSE))

and in B15, B16, B17
=IF($D$1="","",VLOOKUP($D$1,Sheet2!$E$1:$G$9,3,F ALSE))


Okay, here's my problem... when e.g. "Sue" (A1), then

it's taking the 1st
occurance of "Sue" and cross-references it for all in

range A15:B17. So,
right now, the results a
4 D
4 D
4 D

Again, how do I change the VLookup so I get

(for "Sue")...
4 D
5 E
6 F


Thanks,
Tom

















.



  #5   Report Post  
Old December 2nd 04, 12:44 AM
Tom
 
Posts: n/a
Default

I'll give it a try. Thanks!

Tom


"Alan Beban" wrote in message
...
For a different approach for users who have the functions in the freely
downloadable file at http://home.pacbell.net/beban available to their
workbook, array enter into a 3x2 range

=VLookups(A1,E1:G9,{2,3})

Alan Beban

Tom wrote:
I need some help with modifying a VLOOKUP function.

I have the following data in cell range E1:G9.

Col_E Col_F Col_G
===== ===== =====
Richard 1 A
Richard 2 B
Richard 3 C
Sue 4 D
Sue 5 E
Sue 6 F
Tom 7 G
Tom 8 H
Tom 9 I


Cell A1 will have either one of the 3 names: Richard, Sue, Tom


Then, in cell range A15:B17, I want to show the associated values of
either
name:
- F1:G3, or
- F4:G6, or
- F7:G9

So, if A1 = Sue, the I want to show the following in A15:B17:
4 D
5 E
6 F


Right now, I have the following VLOOKUP in A15, A16, and A17.
=IF($A$1="","",VLOOKUP($A$1,Sheet2!$E$1:$G$9,2,FAL SE))

and in B15, B16, B17
=IF($D$1="","",VLOOKUP($D$1,Sheet2!$E$1:$G$9,3,FAL SE))


Okay, here's my problem... when e.g. "Sue" (A1), then it's taking the 1st
occurance of "Sue" and cross-references it for all in range A15:B17. So,
right now, the results a
4 D
4 D
4 D

Again, how do I change the VLookup so I get (for "Sue")...
4 D
5 E
6 F


Thanks,
Tom



















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
Vlookup with VBA Jeff Excel Discussion (Misc queries) 8 December 1st 04 02:41 PM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM
Vlookup / Objects help XL2003 Steve Jones Excel Discussion (Misc queries) 0 November 29th 04 05:01 PM
Vlookup w/ VB Jeff Excel Discussion (Misc queries) 1 November 26th 04 08:39 PM
Problem with vlookup Jeff Excel Discussion (Misc queries) 2 November 26th 04 05:29 PM


All times are GMT +1. The time now is 08:17 PM.

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

About Us

"It's about Microsoft Excel"

 

Copyright © 2017