+ Reply to Thread
Results 1 to 9 of 9

Formula result does not hold value when referenced by another formula, resulting in a 0

  1. #1
    Registered User
    Join Date
    04-16-2020
    Location
    Ottawa
    MS-Off Ver
    Microsoft 365 MSO (Version 2302 Build 16.0.16130.20684) 64-bit
    Posts
    20

    Formula result does not hold value when referenced by another formula, resulting in a 0

    Hello,

    I have a workbook for tracking training progress, the issue I am having is:

    Formula in column C checks the date, importantly the month, on sheet CVB, Formula for April; =IF(MONTH(CVB!$B$3)=4,CVB!$E$10,C1)
    then, gets the value from sheet CVB E10,
    if the date check does not show "April (4)" then keep the value it has already.

    The formula works great but, the percentage difference formula in column D does not as it seems if the date on sheet CVB is not "April (4)" then it's value is 0. Even though it is still showing the proper 98.60%

    So only the the corresponding month from sheet CVB actually has a "value" for it's cell in the Progress sheet.
    As shown in column F with a basic =(cell reference) which leaves the monthly percentage difference at 0% if report date on sheet CVB is not that month.

    I need the cell to hold it's value so column D can properly calculate the percentage difference.

    Any help is greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,199

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    A cell can contain either a value or a formula, but not both. You will most likely need VBA for this - shall I move the thread for you?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-16-2020
    Location
    Ottawa
    MS-Off Ver
    Microsoft 365 MSO (Version 2302 Build 16.0.16130.20684) 64-bit
    Posts
    20

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    Thank you for the reply AliGW!

    If that is what you think is needed then yes please move the thread for me ☺

    Thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,199

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    The thread is now in the VBA section.

  5. #5
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    293

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    This doesn't need VBA, the issue is the circular references in your formulas. You can't reference a cell in that cell itself. I edited all the formulas in C to and replaced the circular references with 0 and now it works.

    Example;
    Original
    Please Login or Register  to view this content.
    Corrected
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-16-2020
    Location
    Ottawa
    MS-Off Ver
    Microsoft 365 MSO (Version 2302 Build 16.0.16130.20684) 64-bit
    Posts
    20

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    Thank you for the reply PrizeGotti ☺

    When I try your fix in my workbook as soon as I change the date, the previous month then changes to 0 instead of staying the value that was there.

    Am I missing something?

  7. #7
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,928

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    I think you need to maybe need to allow the circular references and turn on iterative calculation.

  8. #8
    Registered User
    Join Date
    04-16-2020
    Location
    Ottawa
    MS-Off Ver
    Microsoft 365 MSO (Version 2302 Build 16.0.16130.20684) 64-bit
    Posts
    20

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    Thank you ByteMarks!
    That works perfectly!!!

  9. #9
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,928

    Re: Formula result does not hold value when referenced by another formula, resulting in a

    Great

+ 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. #VALUE! result on formula referenced on another workbook
    By JaneDoe33 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-04-2021, 04:59 PM
  2. [SOLVED] Stop and hold the result from a formula in cell
    By v!o in forum Excel General
    Replies: 3
    Last Post: 11-22-2020, 02:09 PM
  3. [SOLVED] Help with formula - delete first character of resulting formula
    By Chrispelletier in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-20-2018, 06:47 PM
  4. [SOLVED] Populate a cell from another sheet and hold result
    By mikerules in forum Excel General
    Replies: 3
    Last Post: 04-03-2014, 03:03 AM
  5. Replies: 5
    Last Post: 10-13-2005, 08:05 AM
  6. [SOLVED] How to replace a function with its result or resulting reference in a formula?
    By Dmitry Kopnichev in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-13-2005, 08:05 AM
  7. [SOLVED] How to replace a function with its result or resulting reference in a formula?
    By Dmitry Kopnichev in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2005, 08:05 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