+ Reply to Thread
Results 1 to 43 of 43

Trouble with formula when updating range - I'm 'losing' data. Any ideas?

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi all,

    I received great help in an old thread of mine to create an Excel sheet that uses the frequency function to count the number of runs in a data set.

    Initially, it was set up for the predefined range, A9:1596, and worked just fine. I count the number of days and summarize to make sure my calculated values equal what's actually in the set.

    Today, I wanted to update the sheet for say A9:A10000, such that I can refresh the sheet with new data and always make sure the sheet calculates newly added data.

    But, for some reason I get an error when doing this and I "lose" 1 run, i.e., I get 15 runs of 5 instead of 16. Furthermore, it seems to happen only for the value 5, for some reason. That is cell D13 in the attached sheet.

    I'm attaching the sheet as it is when correct. I'm not too familiar with this function, but I've tried analyzing the formulas using both approaches and I can't seem to figure out the difference or what's wrong? For the negative consecutive days, it does not seem to be a problem...?

    To clarify, I try to change this to A9:A1596 to A9:A10000, but it does not work.

    Any ideas?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    The issue is a value of 0 (zero) is included in a "positive" run.


    =SUM(IF(FREQUENCY(IF(A$9:A$1597>=0,ROW(A$9:A$1597)),IF(A$9:A$1597<0,ROW(A$9:A$1597)))=D14,1))

    If you change 1596 to 1597 then 5 count becomes 15 BUT 6 count becomes 9: this is because 1592:1596 are all positive giving a count of 5 BUT if the range is extended by 1 (1597) this count becomes 6.

    Use "Formulas"==>"Evaluate formula" and you see this happening.

  3. #3
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Thanks, John.

    It seems as if the range is extended by 2 or more, those 'positives' are not counted?

    Regardless, would you have a suggestion for how I can accomplish what I mentioned in my first post, i.e., having the formula applicable for a larger (dynamic) range?

    Or do I simply need to update the formula for the precise range whenever I update sheet with new data (giving more/less days)?

  4. #4
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I suppose a solution for what I asked in post #3 would be to use the OFFSET function as I was introduced to in this thread.

    I could then:

    1. Count the number of cells in A:A containing numbers. Let's say this is 1588 as it is now and this is counted in cell B5.

    2. Use the OFFSET function and reference cell B5.

    Or is there an easier way?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Define Change as

    =INDEX(Sheet1!$A:$A, ROW(Sheet1!$A$8) + 1):INDEX(Sheet1!$A:$A, MATCH(9E307, Sheet1!$A:$A))

    (I changed the sheet name for brevity)
    Entia non sunt multiplicanda sine necessitate

  6. #6
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Thanks, shg,

    I have to admit I don't quite understand how to implement that. Would it be too much to ask if you could type it in on the sheet I uploaded?

    If not, no worries. I think my OFFSET solution could work also.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Formulas > Name Manager > New, Name: Change, Scope: Worksheet, Refers to: ...

    Then change the references in the formula.

  8. #8
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, shg,

    I really appreciate it, but have to say I didn't get it to work. It might be that I don't get the formula quite right since I'm in Norway and can't copy and paste directly. I don't quite get what it's supposed to accomplish either, which makes it harder for me to understand, I guess.

    It's the first time I use/attempt to use Name Manager.

  9. #9
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,207

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    See the attached:

    Formulas==>Name Manager

    You will Shg's definition for named range called "Change" i.e,

    =INDEX(Sheet1!$A:$A, ROW(Sheet1!$A$8) + 1):INDEX(Sheet1!$A:$A, MATCH(9E307, Sheet1!$A:$A))

    In E9

    =SUM(IF(FREQUENCY(IF(Change>=0,ROW(Change)),IF(Change<0,ROW(Change)))=D9,1))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Copy down

    NOTE: should it be ">=" or just ">" ?
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Thanks a lot, John. Really appreciate the help. You guys are very helpful.

    The thing is, I don't quite understand what you've done, but maybe I should just accept is as a solution and let it be with that.

    Anyway, it's now set up such that the range under Change (A9:Axxxxxx) can be as large as I want (within practical boundaries of course)? In other words, if I now put in 10.000 days of data, it should work just fine?

    I note what you're saying with regards to the >=0. One could argue that perhaps the zero shouldn't be counted, so I do kind of agree with that. Maybe I should change it to simply >0.

    Thanks again!

  11. #11
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Actually, solving this sheet raised another question.

    All the cells under Change (A9) represent a single day in the stock market. As such, I could add the date for each day in column B9.

    Would there be a (easy) way to be able to find these runs of data in Excel?

    Runs of 1, 2, 3 or even 4 in a row might not be THAT interesting since they happen quite often. But, it would be interesting to for example be able to ask and locate where in my data set these runs happened?

    For example, there have been 2 runs of 8, i.e., 8 days of positive prices in a row. Could I be able to find when this occurred?

    Thanks for any help. Even if that help is confirmation that this would be a hard task to accomplish.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I took a low tech approach to the 'When did the runs occur?' question.
    The dates (guessed and am certain they will need adjusting) are in column B.
    The number of consecutive days that the value in column A is negative is recorded in column C using the formula: =IF(A9<0,SUM(C8,1),0)
    The number of consecutive days that the value in column A is positive is recorded in column D using the formula: =IF(A9>0,SUM(D8,1),0)
    The array entered formula* that displays the dates on which these runs end is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Note: the formula takes the number of consecutive days from cell F21 so that the number of days in a run may be changed easily.
    Note: columns C and D may be moved and/or hidden for aesthetic purposes.
    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.

  13. #13
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, JeteMC,

    Thank you VERY much! This is fantastic. And exactly what I wanted.

    But having looked at it, I'm curious if there is an error somewhere or if I misread something?

    For example, choosing value "3" in cell F 21 for 7 consecutive positive days, I get 5 dates, i.e., 5 runs. And they do appear to be correct by looking them up manually.

    But in my other table, it say that there are only 3 occurences of 7 consecutive positive days.

    Any ideas...?

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    My visual inspection, aided by the conditional formatting in column D, is the same as yours, there are 5 runs of seven consecutive days of positive values in column A.
    I would note that using ">=0" will bring that number to 6.
    Putting the following into cell F15 yields the same values: =COUNTIFS(D$9:D$1596,E15)
    I hope that is helpful.
    Let us know if you have any questions.

  15. #15
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Quote Originally Posted by JeteMc View Post
    My visual inspection, aided by the conditional formatting in column D, is the same as yours, there are 5 runs of seven consecutive days of positive values in column A.
    I would note that using ">=0" will bring that number to 6.
    Putting the following into cell F15 yields the same values: =COUNTIFS(D$9:D$1596,E15)
    I hope that is helpful.
    Let us know if you have any questions.
    Hi again, Jete,

    Yes, it seems like that is correct, assuming your formula/count in column D is correct? Could it be that since your formula counts 'backwards' it misses some of the end points in the set?

    Or are you suggesting that my other formula for counting runs is incorrect? That formula do add up all the days correctly, so I'd imagine it to be correct, but all of this is a little above my head to be honest.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    My feeling is that a count of the number runs of 7 consecutive positive values will be the same regardless of whether the dates increase as you ascend or descend the column. For example the first run of 7 is from row 353 (1) to row 359 (7). If the numbers in column D are reversed it is still a run of seven.
    I am not sure that I understand the part about adding up all of the days correctly.
    I would encourage visual inspection of some of the other values, as in changing F21 to eight (yields two dates) and then six (yields 14 dates).
    Let us know if you have any questions.

  17. #17
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Quote Originally Posted by JeteMc View Post
    My feeling is that a count of the number runs of 7 consecutive positive values will be the same regardless of whether the dates increase as you ascend or descend the column. For example the first run of 7 is from row 353 (1) to row 359 (7). If the numbers in column D are reversed it is still a run of seven.
    I am not sure that I understand the part about adding up all of the days correctly.
    I would encourage visual inspection of some of the other values, as in changing F21 to eight (yields two dates) and then six (yields 14 dates).
    Let us know if you have any questions.
    Hi, Jete,

    Appreciate your patience.

    1. With adding up all days correctly, what I mean is that I've done some arithmetic to make sure that my count of runs add up correctly:

    a. In B3 I've counted all positive days.

    b. Then, in column H9-H18 I've summarized all the runs. For instance 3 runs of 8 sum up to 24 days.

    c. Summarizing column H, I get 871 days which is what I have in B3 as well.

    This has led me to believe that the formula and count is correct.


    But, the way you are counting it does not seem to align with that? So, not sure which is right or wrong?

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I think that I am beginning to understand.
    I have made some changes to the formulas and they now yield values corresponding to those in F9:F18 (eight runs of six, three runs of seven and three runs of eight)
    1) The formula that populates column D is: =IF(A9>=0,SUM(D8,1),0)
    2) The array entered formula* that populates E22:E43 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    A similar change was made to the array entered formula in K22:K43
    I also changed the conditional formatting rules for columns C and D to aid in visually confirming the results.
    Let us know if you have any questions.
    Attached Files Attached Files

  19. #19
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, Jete,

    Thanks again for your continued patience and assistance.

    It's now indeed the same in your formula and in my original table, but it does not seem to be correct for runs less than 5...?

    5 positive consec. days = 16 on both, but I choose 4 consec. days, I get 22 days with your formula and 38 runs with mine.

    Any ideas...?

    Best regards.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I had only copied the formula from cell E22 down as far as E43. Select cell E43 and drag the fill handle down to E60 to get all dates for 4 consecutive positive days. You'll have to drag it down further to get all dates for runs of 3, 2 and 1.
    Let us know if you have any questions.

  21. #21
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Great! Now it works just perfect. Thanks a lot, JeteMc.

  22. #22
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  24. #24
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi again, JeteMC,

    I was trying to copy this sheet to another workbook of mine in order to have every related data in the same workbook.

    However, this leads to Excel being veeeeery slow whenever I try to manipulate any of the data in this sheet and if I try to save the workbook, Excel actually freezes and crashes. I've tried re-booting, etc., but it doesn't help.

    So, I decided to just stick with the original sheet.

    However, it seems like I'm getting the same issues trying to manipulate the sheet in the original workbook?

    What I mean is that I'm trying to delete both Change/Date in column A/B to refresh it with new data. Just doing this or rather trying to do it makes Excel freeze and I have to "kill it".

    Furthermore, I was hoping to have data in Change and Date linked to similar named columns in sheet "Data", but I haven't been able to get to that step yet.

    Any ideas on what's going on here?

    Thanks in advance.

    PS: I also extended the rows of data all the way down to 5000.

    Attaching the updated sheet.
    Attached Files Attached Files

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    This thread is marked solved. If you want further help, then mark it as unsolved.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I feel as if part of the problem was with the 5000 rows, I reduced that to 2000 which still gives you 700 (~3 years) data points in addition to the ones being calculated.
    The dates and changes in columns A and B are linked to corresponding columns on the Raw Data sheet.
    The formula in column F has been modified to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The formula in column L has been modified to read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you upgrade to version 2010 or newer the SMALL(IF based array entered formula could be replaced using an AGGREGATE based regular formula which may help performance. You could play around with with increasing the range of the formula to say rows 9:2500 or so depending on the processing power of machine you are using, or you could ask someone to gain access to a mainframe (smile).
    Let us know if you have any questions.
    Attached Files Attached Files

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I neglected to mention earlier that I also set the calculation mode to manual. This should allow you to make changes on the Raw Data sheet, without having to wait for Excel to update the calculations in columns F and L on the ConsecutiveDays sheet. When you are finished either press the F9 key or select Calculate from the bottom left of the screen. To put Excel in manual mode in the 2010 version you would select the File tab > Options > Formulas > Manual, I am not sure of the exact steps for changing the mode in version 2007.

  28. #28
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, JeteMC,

    Thanks a lot!

    2500 rows would probably be okay, although I'd prefer to have 5000 and even more. Sadly, I'm still not able to save this sheet. I tried saving it without any additional changes.

    Are the formulas on this sheet particularly computer intensive...? I have many other sheets at 5000 rows. At least one of them slightly complex also.

    Maybe I'll just have to stick with the old sheet and update manually (the idea now is that when I update raw data with copy and paste from another sheet, my other sheet(s) will update accordingly). But will I run into problems also even if I extend to 5000 rows on the old sheet and no other changes...?

    As for computer, my current one is slightly old and I'm migrating to a new one in a few days. But this seems to be a little beyond just computer power. Or maybe not.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Let's look at this again after you get the new computer especially runs a newer version of Excel.

  30. #30
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, JeteMC,

    We could do that.

    But, to be clear, I am using Excel 2016 at the moment, so should be fairly up to date, I think?

  31. #31
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Elijah - your user profile is misleading. Please update it to reflect what you are using now. Thanks.

  32. #32
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Thanks for watching out for me, AliGW. I hadn't noticed myself. Corrected now.
    Last edited by AliGW; 03-25-2018 at 09:01 AM. Reason: Please don't quote unnecessarily!

  33. #33
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Thank you.

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Yes, I was thinking that you were using the 2007 version.
    Try pasting the following into cell F22:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This is a regular formula so just press the enter key to activate then double click the fill handle to copy down.
    The corresponding formula for cell L22 is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  35. #35
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, JeteMc,

    Appreciate your help as always!

    If it's not too much trouble, could you input the formula and attach the sheet?

    The reason I'm asking is that I'm in Norway and formulas are written in Norwegian on my Excel. So, copy and paste doesn't work. The formula seems complicated enough that I'm afraid I won't be able to reproduce it correctly on my own.

    Thanks in advance.

    Best regards,

    Elijah

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Absolutely!
    Attached Files Attached Files

  37. #37
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Hi, JeteMc! Thanks a lot!

    The first time trying it did save, but it did take like a minute or so to compute/save. For some reason, it's faster now. So, problem solved, I think!

    Excellent.

  38. #38
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,885

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  39. #39
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    I was hoping to get some additional help from JeteMc on a similar sheet first, Ali.

  40. #40
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    JeteMc,

    I have a sheet which does a similar count on some data using text values. I was hoping to update it to include the "Show dates with n days in a row" feature that you helped me with on the sheet in this thread.

    I did try to update it accordingly and make adjustments, but it does not seem to be quite correct.

    Any ideas where I made a mistake?

    EDIT: Formatting is a little messy, but focused on formulas first.
    Attached Files Attached Files

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    It seems to me that the dates in column F should correspond to the values in column C (LH Days) so it seems the formula in column F should read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Similarly the formula in column L (HL Days) seems as if it should read:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.

  42. #42
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    Seems to work great, JeteMc! Thanks again!

    I haven't had time to sit down with it and complete it, but it does appear to work as it should now. I'm going to put this thread back to solved now...

    Have a great day and a great holiday!

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

    Re: Trouble with formula when updating range - I'm 'losing' data. Any ideas?

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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: 2
    Last Post: 11-28-2017, 09:21 AM
  2. Replies: 0
    Last Post: 08-23-2011, 10:00 AM
  3. Dynamic Range Trouble...rows arent updating??
    By bjflink in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-13-2011, 03:43 AM
  4. formula data backup ideas
    By mkbanister in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2009, 09:11 AM
  5. Keeping the Data, losing the formula (concatenate)
    By arthurz in forum Excel General
    Replies: 3
    Last Post: 02-22-2007, 05:14 PM
  6. Keeping data without losing Formula's
    By Inneed in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 01:51 AM
  7. Enter data without losing formula
    By chateauneufdupa in forum Excel General
    Replies: 0
    Last Post: 03-29-2005, 03: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