+ Reply to Thread
Results 1 to 4 of 4

Countif between 2 open workbooks without liking them both

  1. #1
    Registered User
    Join Date
    08-01-2017
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    6

    Countif between 2 open workbooks without liking them both

    Hello everyone.

    I need to count how many times "CASE" appears in a source workbook and put the value in destination workbook where I have my macros working.

    It would be great if this could be done without linking the 2 workbooks so that when I close the source workbook I still have the value in my destination workbook.

    Does anyone have a macro for this.

    Hope I have explained properly.

    Thanks in advance.

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Countif between 2 open workbooks without liking them both

    Macro will depend on how your workbook is set up (i.e. your data structure) and how often you need to update the value, if there is user other than yourself that could edit the workbook etc.

    Please explain scope in full and also upload sample workbook that represent your data (with sanitized info).
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Countif between 2 open workbooks without liking them both

    You can use VBA for CountIf.

    Assuming the workbook ("Source") is open when you run the code,and assuming it is called "Source.xlsx"

    Run the code from the sheet you want the value from and the result will show in A1.

    -Check the Wb name
    -Sh name
    -Range to count "CASE"


    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-01-2017
    Location
    Dubai, UAE
    MS-Off Ver
    2013
    Posts
    6

    Re: Countif between 2 open workbooks without liking them both

    Thanks davesexcel,

    It worked brilliantly.

    Thanks CK76,

    I know the info was missing but the above macro from davesexcel did the trick before I could reply with your query.

+ 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. Replies: 1
    Last Post: 03-31-2016, 02:06 AM
  2. Help with IF formula - too many ANDs and ORs for my liking!
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-23-2016, 11:54 AM
  3. Help with IF formula - too many ANDs and ORs for my liking!
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2016, 04:49 PM
  4. [SOLVED] INDEX_MATCH not reponding to my liking. Need help
    By saifsawafi in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 10-09-2015, 10:44 AM
  5. Replies: 0
    Last Post: 09-01-2010, 12:40 PM
  6. [SOLVED] Autoselection of Spreadsheet for liking
    By Spreadsheet Linking Flexibility in forum Excel General
    Replies: 0
    Last Post: 05-29-2006, 02:25 PM
  7. formula error, vba not liking commas
    By Spike in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2006, 06:40 AM

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