+ Reply to Thread
Results 1 to 6 of 6

How to count a value in different sheets?

  1. #1
    Registered User
    Join Date
    04-17-2017
    Location
    U.A.E
    MS-Off Ver
    2016
    Posts
    3

    How to count a value in different sheets?

    Hi there,

    I want to count how many times a value/text is appearing in Sheet 2?

    For example:

    Product "XYZ123" in department "A".
    I want to know how many times this product is appearing in a specific department in Sheet 2
    I have over 10,000 products... so is there a way to set one formula on a grid and drag it down?

    Thank you.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to count a value in different sheets?

    Hi and welcome to the forum
    Please upload a workbook or a representative cut down copy, anonymised if necessary. It is always easier to advise if we can see your request in its context.

    Have you considered a Pivot Table? They're often the quickest and simplest way of getting these sorts of statistics.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-17-2017
    Location
    U.A.E
    MS-Off Ver
    2016
    Posts
    3

    Re: How to count a value in different sheets?

    Hi Richard,

    Thank you for replying.

    Attach is the Excel sheet.

    In Sheet 1. product name, department and qty.
    In sheet 2. product name, department, qty and serial no.

    I want to know...
    Whether product from sheet one from a specific department is available in Sheet 2 with the same qty wihtin the same department? If there is any discrepeny how much is that? does the total qty of each department match with the qty of sheet 2 ..

    Hope this makes sense.

    Thank you.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,017

    Re: How to count a value in different sheets?

    This will give quantities on Sheet2

    in D2 (of Sheet1)


    =SUMIFS(Sheet2!$C:$C,Sheet2!$A:$A,A2,Sheet2!$B:$B,B2)

    in E2

    =C2-D2

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to count a value in different sheets?

    Hi,

    Does the attached help?
    I've added helper columns D in Sheet1 & E in Sheet2
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-17-2017
    Location
    U.A.E
    MS-Off Ver
    2016
    Posts
    3

    Re: How to count a value in different sheets?

    Awesome!!
    Thanks .. You're a Guru!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] vba to count sheets
    By Roadhouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2016, 08:48 AM
  2. [SOLVED] Count single criteria in different sheets (Dinamic sheets)
    By XLalbania in forum Excel General
    Replies: 2
    Last Post: 02-17-2016, 07:06 AM
  3. Programming code : Sheets.Add After:=Sheets(Sheets.Count)
    By Blok , Robert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2015, 05:00 AM
  4. how to set the sheets-count
    By nilsanp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2011, 09:32 AM
  5. [SOLVED] Create New WB with copy of Sheets 1 & 2 when sheets count reaches 100
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-25-2006, 11:55 PM
  6. [SOLVED] sheets count
    By Sheets number position in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2005, 08:05 PM
  7. COUNT over several sheets
    By Fybo in forum Excel General
    Replies: 6
    Last Post: 03-08-2005, 01:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1