+ Reply to Thread
Results 1 to 15 of 15

A Count of Values in other Sheet

  1. #1
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    A Count of Values in other Sheet

    Please see attached.

    I need a count of sheet 'Schedule' Column B cell values that have a match in sheet 'Actions' Column G.

    For example:

    2.1 = 2-matches
    2.3 = 1-match
    2.8 = 1-match
    3 = 2-matches

    * * *

    Then, I want the counts above to display in 'Schedule' Column O.

    Thank you !
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Count of Values in other Sheet

    You can use COUNTIF() for this, but note that you have real numbers in Actions, but text looking like numbers in Schedule. Remove the "" from around the numbers and you should be good to go.
    eg
    IF(prevWBS="","1",
    IF(prevWBS="",1,
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Count of Values in other Sheet

    Is this teh duplicate of your other thread here?
    https://www.excelforum.com/excel-for...ml#post5163398

  4. #4
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    Not a duplicate. The original topic had evolved to where it was no longer relevant.

  5. #5
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    Quote Originally Posted by FDibbins View Post
    You can use COUNTIF() for this, but note that you have real numbers in Actions, but text looking like numbers in Schedule. Remove the "" from around the numbers and you should be good to go.
    eg
    IF(prevWBS="","1",
    IF(prevWBS="",1,
    So, I did not write that WBS formula, but it looks numeric to me (there are calculations made on that cell). What am I missing?
    "Remove the "" from around the numbers" I'm not sure what you mean, please elaborate.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: A Count of Values in other Sheet

    Ford showed you what to do.

    IF(prevWBS="","1",

    returns 1 as text.

    IF(prevWBS="",1,

    returns 1 as a number.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    Here's the confusuon:

    What does 'prevWBS' refer to?

    And if we need these as numeric values. why convert a number to text?

    Thanks again.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: A Count of Values in other Sheet

    It refers to Actions!B8.

    Go to Formulas > Name Manager and you will see a list of all named ranges.

    As for the answer to your second question, I can't find the IF formula in the workbook, so I can't check.

  9. #9
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    My bad. Found it. Okay, so I removed the quotes from the 1 ... and still no count.

    So, to simplify, I made a test without the WBS forumula. Please see attached sheet 'Actions' R42 ...

    What am I miaaing? Appreciatre your time, thanks.
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Count of Values in other Sheet

    Actions R42 is empty.
    Can you look again and see where we are supposed to be looking?

  11. #11
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    Sorry, should be Actions B42 ... and the test count is in O42. Thanks much.

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: A Count of Values in other Sheet

    You've got the formula the wrong way round, it should be
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    07-18-2019
    Location
    Chicago
    MS-Off Ver
    365
    Posts
    41

    Re: A Count of Values in other Sheet

    Thank yoiu!

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: A Count of Values in other Sheet

    Thanks for the feedback

  15. #15
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: A Count of Values in other Sheet

    You're welcome & thanks for the feedback

+ 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. Count correspondent values in other sheet
    By iwian in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-06-2017, 10:56 AM
  2. [SOLVED] Loop through shapes in each sheet and count the values along with sheet name
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2016, 12:09 PM
  3. Replies: 4
    Last Post: 06-25-2015, 06:01 PM
  4. count the values of some cells to new sheet with cumulative
    By banadh in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-22-2014, 03:41 AM
  5. Replies: 2
    Last Post: 04-17-2012, 09:54 AM
  6. Count unique values in each sheet
    By vijanand1279 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2012, 11:21 PM
  7. Macro: Count rows in sheet A, copy count in sheet B, paste offset in sheet A
    By Agent:Orange in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-19-2011, 07:56 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