+ Reply to Thread
Results 1 to 4 of 4

Formula to show text instead of last known data

  1. #1
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    168

    Formula to show text instead of last known data

    Hi everyone,

    I have a Countif formula which is counting data from another workbook. I have a macro which when pressed will open that other workbook and the Countif then updates with this new information.

    The problem I have is that once I have loaded the separate workbook and updated my formulas, even after closing the separate workbook down, the data remains where what I am hoping for it to do is then revert to a Nil status or display text such as "run report" or "load workbook" etc.

    The problem is I have other formula which should have notifications and warnings to detect when there has been an error or change in certain cells however as the last known data from the Countif gets stuck in the sheet, it does not detect there has been a change.

    I hope this makes sense. I am fairly new to excel and currently only have access to my phone as my laptop won't connect to the Internet to copy my formulas in.

    I will copy the details of my formula if required tomorrow. If the above makes sense does anyone know if this can even be done?

    Kind regards

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Formula to show text instead of last known data

    Let me restate what I think you are doing to see if I understand the issue properly. You open workbook A and it has a countif to workbook B. You open workbook B and the countif updates. You close workbook B manually and your expectation is that the countif be zeroed out automatically.

    There is code available that checks to see if a workbook is open. Would it work for you if you added a second button that checks to see if workbook B is open. If it is, do nothing. If it isn't zero out the value and re-establish the formula.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    168
    Quote Originally Posted by dflak View Post
    Let me restate what I think you are doing to see if I understand the issue properly. You open workbook A and it has a countif to workbook B. You open workbook B and the countif updates. You close workbook B manually and your expectation is that the countif be zeroed out automatically.

    There is code available that checks to see if a workbook is open. Would it work for you if you added a second button that checks to see if workbook B is open. If it is, do nothing. If it isn't zero out the value and re-establish the formula.
    Hi,

    Thats exactly right! I will be able to post the formulas to show what my formula is doing shortly once i get home.

    So ideally i should open workbook A and there should be no data/"0"/"Run Report" etc. It should advise that workbook B needs running. Once workbook B is loaded it will countif and then update. If i then close workbook B it should revert to its original state as it cant countif without workbook B being open.

    Your option mentioned might work. Would i be able to build that into the Macro for loading Workbook B originally or would it need to be a seperate macro? (Im still very new and my experience/skills with macros is very limited)

    Thanks for your response!
    Last edited by Catsonheat; 08-15-2016 at 12:14 PM.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Formula to show text instead of last known data

    See if this does it for you. You can adjust most of what you need to fit your spreadsheet in the Initialize Variables section. The only other part of the code you will have to change is the COUNTIF formula.
    Attached Files Attached Files

+ 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] Need help with IF formula to show text for blank cell
    By Excel Problems in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-26-2016, 11:25 AM
  2. Show Formula Text in One Cell and Then Use for Formula in Another
    By bowater in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-04-2015, 08:09 AM
  3. [SOLVED] Show text formula
    By formassist in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-02-2014, 02:54 PM
  4. Formula to show all text in different cells, but not the emptyies
    By johnny5dime in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2014, 12:11 PM
  5. Hyperlink Formula doesnt show text
    By ioncila in forum Excel General
    Replies: 4
    Last Post: 11-20-2010, 09:56 AM
  6. formula to show a text answer
    By paulaustralia in forum Excel General
    Replies: 2
    Last Post: 08-24-2010, 11:35 PM
  7. If formula to show text based on 0%
    By jpruffle in forum Excel General
    Replies: 6
    Last Post: 05-11-2009, 07:49 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