Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Vlookup issue?

I have to search and put values in one of my sheets after looking in
a
field of a field. I believe i need to to a nested vlookup, but im not
sure how to go about it. I copied the relevant portions of the data
below:

Department PriceType Monthly
Average


NY
NY Average $1,000.00
NJ
NJ
NJ
NJ
Average $1,500.35


I have to search within a department (for example NJ), and then
search
where average is occuring in the Price Type field, and then pick the
corresponding Monthly average value(1500.35 in this case) and put it
in the vlookup formula origination sheet.
Any help?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Vlookup issue?

Ruchie,

Assuming the Department, PriceType, and Monthly Average columns are in
columns A, B, and C respectively, try something like this:

=SUMPRODUCT((A1:A10="NJ")*(B1:B10="Average")*(C1:C 10))


--
Hope that helps.

Vergel Adriano


"ruchie" wrote:

I have to search and put values in one of my sheets after looking in
a
field of a field. I believe i need to to a nested vlookup, but im not
sure how to go about it. I copied the relevant portions of the data
below:

Department PriceType Monthly
Average


NY
NY Average $1,000.00
NJ
NJ
NJ
NJ
Average $1,500.35


I have to search within a department (for example NJ), and then
search
where average is occuring in the Price Type field, and then pick the
corresponding Monthly average value(1500.35 in this case) and put it
in the vlookup formula origination sheet.
Any help?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Vlookup issue?

Ruchie,

Assuming the Department, PriceType, and Monthly Average columns are in
columns A, B, and C respectively, try something like this:

=SUMPRODUCT((A1:A10="NJ")*(B1:B10="Average")*(C1:C 10))


--
Hope that helps.

Vergel Adriano


"ruchie" wrote:

I have to search and put values in one of my sheets after looking in
a
field of a field. I believe i need to to a nested vlookup, but im not
sure how to go about it. I copied the relevant portions of the data
below:

Department PriceType Monthly
Average


NY
NY Average $1,000.00
NJ
NJ
NJ
NJ
Average $1,500.35


I have to search within a department (for example NJ), and then
search
where average is occuring in the Price Type field, and then pick the
corresponding Monthly average value(1500.35 in this case) and put it
in the vlookup formula origination sheet.
Any help?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Vlookup issue?

On Jun 8, 5:36 pm, Vergel Adriano
wrote:
Ruchie,

Assuming the Department, PriceType, and Monthly Average columns are in
columns A, B, and C respectively, try something like this:

=SUMPRODUCT((A1:A10="NJ")*(B1:B10="Average")*(C1:C 10))

--
Hope that helps.

Vergel Adriano



"ruchie" wrote:
I have to search and put values in one of my sheets after looking in
a
field of a field. I believe i need to to a nested vlookup, but im not
sure how to go about it. I copied the relevant portions of the data
below:


Department PriceType Monthly
Average


NY
NY Average $1,000.00
NJ
NJ
NJ
NJ
Average $1,500.35


I have to search within a department (for example NJ), and then
search
where average is occuring in the Price Type field, and then pick the
corresponding Monthly average value(1500.35 in this case) and put it
in the vlookup formula origination sheet.
Any help?- Hide quoted text -


- Show quoted text -


following Vergel- I think you might have to push ctrl+shift+enter (not
just enter) to enter the formula as this is an "array formula"

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Vlookup issue?

actually i have to use the monthly average field to feed into another
worksheet, which is a consolidation sheet.
the consolidated worksheet lists the departments uniquely, and i have
to search the corresponding entry of department in this sheet, then
the average, then the monthly average field, all from this other
consolidation sheet. i hope i am able to explain the problem
properly...



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Vlookup issue?

I'm not sure I fully understand it now, but assuming your data sheet is
Sheet2 and your consolidation sheet is Sheet1.. and assuming sheet1!A2 has
"NJ", in Sheet1!B2, enter this formula:

=SUMPRODUCT((Sheet2!A1:A10=A2)*(Sheet2!B1:B10="Ave rage")*(Sheet2!C1:C10))


--
Hope that helps.

Vergel Adriano


"ruchie" wrote:

actually i have to use the monthly average field to feed into another
worksheet, which is a consolidation sheet.
the consolidated worksheet lists the departments uniquely, and i have
to search the corresponding entry of department in this sheet, then
the average, then the monthly average field, all from this other
consolidation sheet. i hope i am able to explain the problem
properly...


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Vlookup issue?

Hi,

it works as a regular formula, no need to CTRL+SHIFT+ENTER...


--
Hope that helps.

Vergel Adriano


"pchr" wrote:

On Jun 8, 5:36 pm, Vergel Adriano
wrote:
Ruchie,

Assuming the Department, PriceType, and Monthly Average columns are in
columns A, B, and C respectively, try something like this:

=SUMPRODUCT((A1:A10="NJ")*(B1:B10="Average")*(C1:C 10))

--
Hope that helps.

Vergel Adriano



"ruchie" wrote:
I have to search and put values in one of my sheets after looking in
a
field of a field. I believe i need to to a nested vlookup, but im not
sure how to go about it. I copied the relevant portions of the data
below:


Department PriceType Monthly
Average


NY
NY Average $1,000.00
NJ
NJ
NJ
NJ
Average $1,500.35


I have to search within a department (for example NJ), and then
search
where average is occuring in the Price Type field, and then pick the
corresponding Monthly average value(1500.35 in this case) and put it
in the vlookup formula origination sheet.
Any help?- Hide quoted text -


- Show quoted text -


following Vergel- I think you might have to push ctrl+shift+enter (not
just enter) to enter the formula as this is an "array formula"


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Vlookup issue?

works just fine! thanks a lot!

  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Vlookup issue?

Assuming your data is in cells A2:C7, put the following formula in
another column of row 2, then copy it down.
=SUMPRODUCT(--(A$2:A$7=A2),--(B$2:B$7="Average"),--(C$2:C$7))

If you need it in VBA, it's easy to convert.

Hth,
Merjet


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 issue VR Excel Worksheet Functions 0 May 8th 09 02:00 AM
Issue with VLOOKUP armsiee Excel Worksheet Functions 3 January 31st 09 12:52 AM
VLOOKUP Issue Rocco2526 Excel Worksheet Functions 2 December 3rd 08 08:54 PM
Vlookup issue [email protected] Excel Programming 1 May 17th 07 02:40 PM
VLOOKUP issue Jock Excel Worksheet Functions 4 May 8th 07 01:44 PM


All times are GMT +1. The time now is 09:33 PM.

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

About Us

"It's about Microsoft Excel"