Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default Locate row based on two criteria

I have a list of data where column A and Column B together identify the row
uniquely.

From a formula I want to locate a specific row matching the TWO criteria
(i.e. both value in A and B columna should match my input values). I want to
return the value in column C.

ex: (list is sorted - A asc, then B asc)
A- Item B-Item location C-Stock Qty
Barbie doll X 10
Barbie doll Y 6
Barbie doll Z 3
Spiderman X 2
Spiderman Y 4

I want to find how many barbie dolls are on location Y (=6) and use this
value for further processing.

Should be simple, but I'm not very advanced in Excel. With only one criteria
I would have used VLOOKUP......

Grateful for any help on this....
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default Locate row based on two criteria

The function always returns zero since the entries are not numeric. I want to
return the exact value of column C, and I'm not sure I understand how
sumproduct can do that.. Or am I missing something ?
Kathrine

"Sandy Mann" wrote:

Try:

=SUMPRODUCT((A2:A6="Barbie doll")*(B2:B6="Y")*C2:C6)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
I have a list of data where column A and Column B together identify the row
uniquely.

From a formula I want to locate a specific row matching the TWO criteria
(i.e. both value in A and B columna should match my input values). I want
to
return the value in column C.

ex: (list is sorted - A asc, then B asc)
A- Item B-Item location C-Stock
Qty
Barbie doll X 10
Barbie doll Y 6
Barbie doll Z 3
Spiderman X 2
Spiderman Y 4

I want to find how many barbie dolls are on location Y (=6) and use this
value for further processing.

Should be simple, but I'm not very advanced in Excel. With only one
criteria
I would have used VLOOKUP......

Grateful for any help on this....




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Locate row based on two criteria

I get 6 whether column C has text number or real numbers. The other colums
do not need to be numbers for SUMPRODUCT() to work. See

http://www.xldynamic.com/source/xld.SUMPRODUCT.html#new

for an explanation of this use of SUMPRODUCT()

If you want you can send me a sample of your spreadsheet and I will have a
look to see whay it is not working for you.

Correct my address as it says in my signature by replacing the
@maininator.com which is a spam trap.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
The function always returns zero since the entries are not numeric. I want
to
return the exact value of column C, and I'm not sure I understand how
sumproduct can do that.. Or am I missing something ?
Kathrine

"Sandy Mann" wrote:

Try:

=SUMPRODUCT((A2:A6="Barbie doll")*(B2:B6="Y")*C2:C6)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
I have a list of data where column A and Column B together identify the
row
uniquely.

From a formula I want to locate a specific row matching the TWO
criteria
(i.e. both value in A and B columna should match my input values). I
want
to
return the value in column C.

ex: (list is sorted - A asc, then B asc)
A- Item B-Item location
C-Stock
Qty
Barbie doll X
10
Barbie doll Y
6
Barbie doll Z
3
Spiderman X 2
Spiderman Y
4

I want to find how many barbie dolls are on location Y (=6) and use
this
value for further processing.

Should be simple, but I'm not very advanced in Excel. With only one
criteria
I would have used VLOOKUP......

Grateful for any help on this....






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default Locate row based on two criteria

You are right. It works! I was using the function wizard. It puts ; in
between the arguments. Replacing with * as in your example did it!

Thank you!

"Sandy Mann" wrote:

I get 6 whether column C has text number or real numbers. The other colums
do not need to be numbers for SUMPRODUCT() to work. See

http://www.xldynamic.com/source/xld.SUMPRODUCT.html#new

for an explanation of this use of SUMPRODUCT()

If you want you can send me a sample of your spreadsheet and I will have a
look to see whay it is not working for you.

Correct my address as it says in my signature by replacing the
@maininator.com which is a spam trap.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
The function always returns zero since the entries are not numeric. I want
to
return the exact value of column C, and I'm not sure I understand how
sumproduct can do that.. Or am I missing something ?
Kathrine

"Sandy Mann" wrote:

Try:

=SUMPRODUCT((A2:A6="Barbie doll")*(B2:B6="Y")*C2:C6)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
I have a list of data where column A and Column B together identify the
row
uniquely.

From a formula I want to locate a specific row matching the TWO
criteria
(i.e. both value in A and B columna should match my input values). I
want
to
return the value in column C.

ex: (list is sorted - A asc, then B asc)
A- Item B-Item location
C-Stock
Qty
Barbie doll X
10
Barbie doll Y
6
Barbie doll Z
3
Spiderman X 2
Spiderman Y
4

I want to find how many barbie dolls are on location Y (=6) and use
this
value for further processing.

Should be simple, but I'm not very advanced in Excel. With only one
criteria
I would have used VLOOKUP......

Grateful for any help on this....








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,345
Default Locate row based on two criteria

Hi Katherine,

I'm glad you got it sorted out. Using SUMPRODUCT() this way was never
envisaged by Microsoft, it was some of the clever people around here that
extended its use.

--
Regards,


Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
You are right. It works! I was using the function wizard. It puts ; in
between the arguments. Replacing with * as in your example did it!

Thank you!

"Sandy Mann" wrote:

I get 6 whether column C has text number or real numbers. The other
colums
do not need to be numbers for SUMPRODUCT() to work. See

http://www.xldynamic.com/source/xld.SUMPRODUCT.html#new

for an explanation of this use of SUMPRODUCT()

If you want you can send me a sample of your spreadsheet and I will have
a
look to see whay it is not working for you.

Correct my address as it says in my signature by replacing the
@maininator.com which is a spam trap.


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
The function always returns zero since the entries are not numeric. I
want
to
return the exact value of column C, and I'm not sure I understand how
sumproduct can do that.. Or am I missing something ?
Kathrine

"Sandy Mann" wrote:

Try:

=SUMPRODUCT((A2:A6="Barbie doll")*(B2:B6="Y")*C2:C6)

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Kathrine" wrote in message
...
I have a list of data where column A and Column B together identify
the
row
uniquely.

From a formula I want to locate a specific row matching the TWO
criteria
(i.e. both value in A and B columna should match my input values). I
want
to
return the value in column C.

ex: (list is sorted - A asc, then B asc)
A- Item B-Item location
C-Stock
Qty
Barbie doll X
10
Barbie doll Y
6
Barbie doll Z
3
Spiderman X
2
Spiderman Y
4

I want to find how many barbie dolls are on location Y (=6) and use
this
value for further processing.

Should be simple, but I'm not very advanced in Excel. With only one
criteria
I would have used VLOOKUP......

Grateful for any help on this....








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
Locate a cell, based on a criteria, then use the 'Cell' command... cdavidson Excel Discussion (Misc queries) 1 November 17th 05 06:30 PM
Locate a Cell based upon criteria Stan Excel Discussion (Misc queries) 1 September 23rd 05 03:05 PM
Locate max value of one column based on criteria in another colum JDay01 Excel Worksheet Functions 2 September 1st 05 06:47 PM
MIN within range based on criteria StevenL Excel Discussion (Misc queries) 9 July 11th 05 11:33 PM
Need help looking up value based on criteria akbreezo Excel Worksheet Functions 7 June 15th 05 10:53 PM


All times are GMT +1. The time now is 09:25 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"