+ Reply to Thread
Results 1 to 5 of 5

Count data from other sheets into one cell

  1. #1
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Count data from other sheets into one cell

    Hi guys!

    I have multiple sheets on a workbook, labelled 1st all the way to 31st.

    I'm trying to create a master sheet, and in Cell B5 of each daily sheet, there will be 3 sets of information, Blue, Green or Orange.

    I'm trying to sum all sheets, if it's blue in B5 on the daily sheets = 1, if its green in B5 on the daily sheets = 2, if its orange in B5 on the daily sheets = 3.

    Whats the formula, to scan all sheets from the 1st to the 31st, and convert the words into the values above and a total sum?

    Hope this makes sense?

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,362

    Re: Count data from other sheets into one cell

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    824

    Re: Count data from other sheets into one cell

    Sub WorksheetLoop()

    Dim WS_Count As Integer
    Dim I As Integer

    ' Set WS_Count equal to the number of worksheets in the active
    ' workbook.
    WS_Count = ActiveWorkbook.Worksheets.Count

    ' Begin the loop.
    For I = 1 To WS_Count

    ' Insert your code here.
    ' The following line shows how to reference a sheet within
    ' the loop by displaying the worksheet name in a dialog box.
    MsgBox ActiveWorkbook.Worksheets(I).Name

    Next I

    End Sub

  4. #4
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Re: Count data from other sheets into one cell

    I have attached an example workbook, very short but I'm sure I can expand it once I understand the formula
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    05-15-2017
    Location
    US
    MS-Off Ver
    365
    Posts
    824

    Re: Count data from other sheets into one cell

    Not fully tested, but should get you in the ballpark..

    Please Login or Register  to view this content.

+ 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. Running count of ref codes across all sheets of monthly data
    By Mohammad Munawar in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2020, 08:05 AM
  2. Creating multiple sheets depending a cell count
    By burlywood66 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-02-2010, 05:25 PM
  3. Count cell avarage from selected sheets
    By peterkiukas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2008, 10:34 AM
  4. Replies: 1
    Last Post: 07-13-2006, 06:55 AM
  5. Replies: 1
    Last Post: 07-10-2006, 04:42 PM
  6. Replies: 1
    Last Post: 07-10-2006, 11:59 AM
  7. Replies: 0
    Last Post: 07-10-2006, 10:53 AM

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