• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Another IF formula and Circular equation|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Another IF formula and Circular equation|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Another IF formula and Circular equ…
sp_PrintTopic sp_TopicIcon
Another IF formula and Circular equation
Avatar
William Adkins
Member
Members
Level 0
Forum Posts: 18
Member Since:
May 28, 2021
sp_UserOfflineSmall Offline
1
June 12, 2021 - 10:24 pm
sp_Permalink sp_Print

Hi,

I searched for circular reference issues as I have the problem facing me now. I saw Adam's post from 3/8 of this year and the response formula that was given. I have applied that to the existing formula I am working adjusting to fit the needs and have no success. Here is the IF as it is not in the workbook for Cell D5

=IF(Data!$C5="Analysis", IF(Data!$G5>D5,Data!$G5,D5),D5) the italicized nested IF is the formula from the above mentioned post just adjusted to fit my scenario. All I get is a zero, no matter what the value of the target cell D5 may be. Even if it is a zero there is still no value change.

I have attached the test file. And have carefully documented it. On the "Analysis" sheet the 3 test conditions are laid out along with the expected results for cell D5. The source data is on the "Data" page. Presently I know that the use of the target cell for the FALSE condition in the outer IF works to preserve what ever value is in the cell should the Status not be "Analysis", at least that works.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 871
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
June 13, 2021 - 8:29 pm
sp_Permalink sp_Print

Hello,

Normally you avoid to write formulas resulting in a circular reference, but there is an option to more or less allow such.
See if enabling iterative calculation works for you, in my tests it doesn't to the fully, I do get 7 as a result, but when changing the number in Data sheet it does not update.

If you haven't found this page already, here is a support page describing a little more of this option.

In my view you have two options, using VBA or add data (new rows) per status change.

Br,
Anders

Avatar
William Adkins
Member
Members
Level 0
Forum Posts: 18
Member Since:
May 28, 2021
sp_UserOfflineSmall Offline
3
June 13, 2021 - 9:55 pm
sp_Permalink sp_Print

Anders.

Thank you for the response. I reviewed the page to tagged in the response and determined that the issue could be resolved by limiting the number of iterations of the formula. Once I enabled iterative calculation and dropped it down to 10 from 100 I had no further issues and my target table is now filled out correctly with current and historical values.

Regards,

William

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 871
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
June 14, 2021 - 7:43 am
sp_Permalink sp_Print

Hello,

Great that it works and thanks for your update, I have avoided such scenarious but with your example I see that it can actually work.

Br,
Anders

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Richard West, Rocco Pinneri, Alexandra Radu, AndyC
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
AndyC
Denise Lloyd
michael serna
mashal sana
Tiffany Kang
Leah Gillmore
Forum Stats:
Groups: 3
Forums: 24
Topics: 6219
Posts: 27276

 

Member Stats:
Guest Posters: 49
Members: 31903
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.