ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Lookup (https://www.excelbanter.com/excel-discussion-misc-queries/240504-lookup.html)

Gazz_85[_2_]

Lookup
 
I have a table that i want to automatically up date, not sure how to do it. I
want it to look through another table and everytime it finds a certain value,
i want it to check another colum to see if it has a certain value and count
the number.

eg look up colum A looking for the number 3760 and for every row with 3760
then look in column B to see if it has the value "Ex" and if it does count it
(add one to the total) and then put the final value in my other table to be
used for reporting (charts,graphs,etc)

Is this possible???

Cheers

Jacob Skaria

Lookup
 
Use SUMPRODUCT()
=SUMPRODUCT(--($A$1:$A$100=3760),--($B$1:$B$100="Ex"))

You can change 3760 and "Ex" to cell references and add Sheetnames (if table
is in different sheet) to suit your requirement

If this post helps click Yes
---------------
Jacob Skaria


"Gazz_85" wrote:

I have a table that i want to automatically up date, not sure how to do it. I
want it to look through another table and everytime it finds a certain value,
i want it to check another colum to see if it has a certain value and count
the number.

eg look up colum A looking for the number 3760 and for every row with 3760
then look in column B to see if it has the value "Ex" and if it does count it
(add one to the total) and then put the final value in my other table to be
used for reporting (charts,graphs,etc)

Is this possible???

Cheers


Pete_UK

Lookup
 
Suppose you have 3760 in D1 - put this formula in E1:

=SUMPRODUCT((A1:A1000=D1)*(B1:B1000="Ex"))

and this will count the number of rows that contain both "Ex" in
column B and the value from D1 in column A.

Hope this helps.

Pete

On Aug 24, 10:51*am, Gazz_85 wrote:
I have a table that i want to automatically up date, not sure how to do it. I
want it to look through another table and everytime it finds a certain value,
i want it to check another colum to see if it has a certain value and count
the number.

eg look up colum A looking for the number 3760 and for every row with 3760
then look in column B to see if it has the value "Ex" and if it does count it
(add one to the total) and then put the final value in my other table to be
used for reporting (charts,graphs,etc)

Is this possible???

Cheers




All times are GMT +1. The time now is 03:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com