+ Reply to Thread
Results 1 to 5 of 5

Count columns and rows until value reached -> continue counting til next value reached

  1. #1
    Registered User
    Join Date
    12-05-2018
    Location
    Harstad, Norway
    MS-Off Ver
    MS Excel 2016
    Posts
    3

    Count columns and rows until value reached -> continue counting til next value reached

    Hi there,


    Prob1; (tab1 spreadsheet)
    Trying to make a spreadsheet to keep track of financial numbers in different businesses.

    Put an example chart here. Trying to make this formula so that when you come into 2019 and enter income day by day the formula will update when the 1st million is made, 2nd etc.

    Prob2; (tab2 spreadsheet)
    And i also have a problem with circleref. in a % formula i made that also should come into action as the year goes.

    Any help would be much appreciated!
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Count columns and rows until value reached -> continue counting til next value reached

    Hi, and welcome to the forum.

    Can you explain in a narrative form what you are trying to achieve. I can't help thinking it would be better if your data in A1:H31 was kep in a normalised table of dates and values, i.e. a two column List

    Analysis is then much simplfied.

    You have a circular ref because the formulae in column F are referriing to themselves. What are you trying to show. The Default or 3rd term of an IF formula is usually the value you want if the first part isn't true. In your formula in F4 you're simply saying that F4 for is zero.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-05-2018
    Location
    Harstad, Norway
    MS-Off Ver
    MS Excel 2016
    Posts
    3

    Re: Count columns and rows until value reached -> continue counting til next value reached

    Hi,

    I dont really have any excel background, so what i get from what you are saying is more or less; I don't setup my excel spreadsheets the right way for formulas etc. to work properly.

    If you could take a look i can send the main sheet for you to take a look at and give me feedback on the setup. (Which i think might be incorrect to make use of functions).
    Last edited by saaHarstad; 12-05-2018 at 04:49 PM.

  4. #4
    Registered User
    Join Date
    12-05-2018
    Location
    Harstad, Norway
    MS-Off Ver
    MS Excel 2016
    Posts
    3

    Re: Count columns and rows until value reached -> continue counting til next value reached

    Hi again,

    Filling in some context, if you havn't seen scheme 1. (I would strongly suggest to take a glance at it before picking up example sheet 2)

    The formula im missing is mainly a summary of equal the one i request in example scheet on tab 1, if this is not possible to make with the collumn/rows setup the way i have in Example sheet 2 here (larger area of nr's vs example sheet) how can it be done to make a formula that counts and tells the amount of days spent to accumulate 1 million in income automatically?

    The 2nd problem is that the formula shown on example sheet on tab 2 goes to circle ref. But when it gets numbers during 2019 it will automatically transform into a % in a positive or negative value. (Does it even matter??) Or should i just put false part of =if equation to a static cell with text "TBC" ?


    Like said before, any help will be greatly appreciated, been banging my head against Youtube tutorials the last couple of days to try and figure out a formula or any other way to accumulate this formula up ahead of the numbers actually appearing under 2019.

    The point of this formula is to be able to compare how many days you use to generate 1 million in income compared to other years, as in 2017 maybe it's 30 days vs 2018 you use 40 days etc. To keep track off key points in total income.
    Attached Files Attached Files
    Last edited by saaHarstad; 12-05-2018 at 08:54 PM.

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Count columns and rows until value reached -> continue counting til next value reached

    This proposal for Prob1, from file attached to post #1, employs four helper columns which may be moved and/or hidden for aesthetic purposes.
    Column J is populated using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Column K is populated using: =IF(J2="","",INDEX(J$2:J$300,AGGREGATE(15,6,(ROW($2:$300)-1)/(J$2:J$300<>0),ROW(1:1))))
    Column L is populated using: =IF(K2="","",MOD(SUM(K$2:K2),1000000))
    Column M is populated using: =IF(OR(L3>L2,K3=""),"",ROW()-1)
    The 'Number of days' is displayed using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The 'Average per day' is displayed using: =IF(B38="","",1000000/B38)
    For Prob2 the circular references may be removed by using:
    D4: =IF(E4>1,((E4/C4)-100%),0)
    F4: =IF(G4>1,((G4/E4)-100%),0)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to 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. [SOLVED] Count Columns Until Value Reached
    By phelbin in forum Excel General
    Replies: 7
    Last Post: 08-02-2021, 10:18 AM
  2. restart counting once integer reached
    By wbsgn12 in forum Excel General
    Replies: 3
    Last Post: 07-30-2016, 02:10 PM
  3. [SOLVED] Move specific cells to a new sheet when a date is reached or 30 days from being reached
    By Albert Dirk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-26-2016, 04:44 AM
  4. Replies: 1
    Last Post: 07-17-2013, 10:08 AM
  5. [SOLVED] Counting days till value is reached
    By Montoro22 in forum Excel General
    Replies: 11
    Last Post: 07-06-2012, 11:09 AM
  6. Replies: 3
    Last Post: 04-12-2012, 01:57 PM
  7. Replies: 6
    Last Post: 10-01-2010, 04:55 PM

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