#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default VLOOKUP

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default VLOOKUP

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default VLOOKUP

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default VLOOKUP

Can you copy your equation into here and I'll take a peak?

"Johnny" wrote:

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default VLOOKUP

This is what I was attempting to do before I posted my original question. The
if formula was not working.
=IF(INVENTORY!B:B=$F$2,(VLOOKUP(F6,INVENTORY!$A$3: $D$6000,4,0)),"")


This is the formula that you recommended. This formula is resulting in (0)
for everything.
=SUMPRODUCT(--(INVENTORY!$A$4:$A$3500=$F6),--(INVENTORY!$B$4:$B$3500=F$2),($D$4:$D$3500))

"Barb Reinhardt" wrote:

Can you copy your equation into here and I'll take a peak?

"Johnny" wrote:

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default VLOOKUP

Is it possible that values in column D aren't numbers?

"Johnny" wrote:

This is what I was attempting to do before I posted my original question. The
if formula was not working.
=IF(INVENTORY!B:B=$F$2,(VLOOKUP(F6,INVENTORY!$A$3: $D$6000,4,0)),"")


This is the formula that you recommended. This formula is resulting in (0)
for everything.
=SUMPRODUCT(--(INVENTORY!$A$4:$A$3500=$F6),--(INVENTORY!$B$4:$B$3500=F$2),($D$4:$D$3500))

"Barb Reinhardt" wrote:

Can you copy your equation into here and I'll take a peak?

"Johnny" wrote:

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default VLOOKUP

column D is ok but I know that in column A I do have some ITEM#'s that are in
text formate

EXAMPLE: (A-VG200-H5)






"Barb Reinhardt" wrote:

Is it possible that values in column D aren't numbers?

"Johnny" wrote:

This is what I was attempting to do before I posted my original question. The
if formula was not working.
=IF(INVENTORY!B:B=$F$2,(VLOOKUP(F6,INVENTORY!$A$3: $D$6000,4,0)),"")


This is the formula that you recommended. This formula is resulting in (0)
for everything.
=SUMPRODUCT(--(INVENTORY!$A$4:$A$3500=$F6),--(INVENTORY!$B$4:$B$3500=F$2),($D$4:$D$3500))

"Barb Reinhardt" wrote:

Can you copy your equation into here and I'll take a peak?

"Johnny" wrote:

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default VLOOKUP

Don't mind me I am a little slow at times. The formula that you gave me is
working fine. Apparently I didn't update the worksheet with the last portion
of the formula. Thank you very much for you time. You have been very helpful.

"Johnny" wrote:

This is what I was attempting to do before I posted my original question. The
if formula was not working.
=IF(INVENTORY!B:B=$F$2,(VLOOKUP(F6,INVENTORY!$A$3: $D$6000,4,0)),"")


This is the formula that you recommended. This formula is resulting in (0)
for everything.
=SUMPRODUCT(--(INVENTORY!$A$4:$A$3500=$F6),--(INVENTORY!$B$4:$B$3500=F$2),($D$4:$D$3500))

"Barb Reinhardt" wrote:

Can you copy your equation into here and I'll take a peak?

"Johnny" wrote:

I'm getting a result of (0) for everything

"Barb Reinhardt" wrote:

Let's say you have the following:

ITEM #: A2:A5
Stock location: B2:B5
Quantity: C2:C5

G2: 101398
G3: 101598

H1 = 1
I1 = 2

H2: =SUMPRODUCT(--($A$2:$A$5=$G2),--($B$2:$B$5=H$1),($C$2:$C$5))
Copy to H3, I2 and I3.

Is that what you want?

"Johnny" wrote:

worksheet: 1

I have a list of ITEM#'s in column (A) and the coresponding STOCK LOCATION
column (B). The QUANTITY of each item is in column (C). The ITEMS are sorted
by STOCK LOCATION.

(A) (B) (C)
101398 1 120
101538 1 500
101398 2 50
101538 2 100

worksheet: 2

I want to do VLOOKUP of the ITEM#s(in columns A & C) to get the QUANITY
levels(in columns B & D), but I want to the formula in column (B) to only
look for the items the match the STOCK LOCATION the is in cell ($A$1). And
for column (D)'s formula to match cell ($C$1).

(A) (B) | (C) (D)
1 | 2
ITEM QTY level | ITEM QTY level
101398 120 | 101398 50
101538 500 | 101538 100





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 and its properties pepenacho Excel Worksheet Functions 1 August 22nd 06 10:52 PM
VLookup a Vlookup adamb2000 Excel Worksheet Functions 4 June 28th 06 10:54 PM
VLOOKUP Problem Ian Excel Discussion (Misc queries) 3 April 6th 06 06:47 PM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM


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

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"