+ Reply to Thread
Results 1 to 8 of 8

Data messed up with certain changes, and can't undo?!

  1. #1
    Registered User
    Join Date
    08-07-2020
    Location
    Boston, MA, USA
    MS-Off Ver
    MS Office Pro Plus 2019
    Posts
    18

    Data messed up with certain changes, and can't undo?!

    Hello There.
    With your valuable help, my Excel file makes an array of data, resorting it from the data arranged by the week collected from a group of mice, to a new array at the right with the data sorted by the age of the mouse in weeks. Here is the formula to get the new array sorted by age:

    =IFERROR(_xlfn.SINGLE(INDEX(4:4,AGGREGATE(15,6,COLUMN($I$2:$AK$2)/(ROUND(($I$2:$AK$2-$G4)/7,0)=LOOKUP(2,1/(AM$2:$AN$2<>""),AM$2:$AN$2)),LEFT(AM$3)+0))),0)

    It works well . However, if I make certain changes to the Excel sheet the array repopulates with all zeros. If I undo the change, it is still all zeros. The first change was to insert a new row under this array between before some other calculations below. The second time I added a column to the left that averaged the data from a row of the array. Same thing when computer is restarted.

    Why does this happen?

    Thanks in advance.

    Microsoft Office Professional Plus 2019. Excel version 1808 (I think).

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Data messed up with certain changes, and can't undo?!

    Normally, the AGGREGATE function does not required Ctrl-shift-enter.
    But: ROUND(($I$2:$AK$2-$G4)) inside that an array formula, therefore see below instruction:

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Quang PT

  3. #3
    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
    81,247

    Re: Data messed up with certain changes, and can't undo?!

    Microsoft Office Professional Plus 2019. Excel version 1808 (I think).
    Please update your forum profile accordingly. 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.

  4. #4
    Registered User
    Join Date
    08-07-2020
    Location
    Boston, MA, USA
    MS-Off Ver
    MS Office Pro Plus 2019
    Posts
    18

    Re: Data messed up with certain changes, and can't undo?!

    Bebo, I already see brackets around the entire formula. I notice that when I select and copy a formula, like when I pasted it on the forum, the brackets disappear. That's why it didn't appear above, but I see it in my workbook.

    It still destroys itself if I insert a line under the array.

    I'm not sure what they mean to press "Ctrl, Shft, Enter".
    If I put the =AVERAGE function after my array to average that row of the array, the result is zero, and that row of the array becomes zeroes. If I enter the function with CTRL+Shft, the result is the same, but the formula does have brackets around it.




    AliGW: I hear and I obey.
    Last edited by mchlbrmn; 08-28-2020 at 06:50 PM.

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

    Re: Data messed up with certain changes, and can't undo?!

    It may help if we could see a sample file. It may also help to know what the _xlfn.SINGLE... portion of the formula is supposed to do as that was not part of the last formula that bebo provided in the "LOOKUP: Trying to deglitch repeats in data" thread.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  6. #6
    Registered User
    Join Date
    08-07-2020
    Location
    Boston, MA, USA
    MS-Off Ver
    MS Office Pro Plus 2019
    Posts
    18

    Re: Data messed up with certain changes, and can't undo?!

    I was wondering about that. I figured that if the Excel Gods must had inserted the _ilfn, it must be good.
    I could be wrong.
    Last edited by mchlbrmn; 09-04-2020 at 06:48 PM.

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

    Re: Data messed up with certain changes, and can't undo?!

    The last formula bebo provided was: =IFERROR(INDEX(4:4,AGGREGATE(15,6,COLUMN($C$1:$F$1)/(ROUND(($C$1:$F$1-$B5)/7,0)=LOOKUP(2,1/($H$1:H$1<>""),$H$1:H$1)),LEFT(H$2)+0)),"")
    As this article states an .xlfn prefix indicates a function that is not supported in the version of Excel that you are currently running.
    https://support.microsoft.com/en-us/...4-9fbb77fd5025
    I am not sure what .xlfn.SINGLE is supposed to be or what it is supposed to do.

  8. #8
    Registered User
    Join Date
    08-07-2020
    Location
    Boston, MA, USA
    MS-Off Ver
    MS Office Pro Plus 2019
    Posts
    18

    Re: Data messed up with certain changes, and can't undo?!

    Thank you JeteMc. I have trouble keeping track of all these Excel details that are new to me.

    I've been working back and forth with a colleague, so maybe we have compatibility issues with our Excel versions. Other format stuff gets messed up a bit too. I'll try to get both of us to save the document in a common version. I hope that both our versions support the functions in the formula.

+ 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: 0
    Last Post: 11-22-2014, 05:02 PM
  2. Replies: 10
    Last Post: 07-21-2014, 11:11 AM
  3. Data messed up / jumbled up in shared worksheet
    By Fibon in forum Excel General
    Replies: 8
    Last Post: 05-10-2012, 05:29 AM
  4. Replies: 0
    Last Post: 02-29-2012, 01:40 PM
  5. Undo function to undo Visual Basic commands
    By pierre08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2010, 04:59 AM
  6. VBA Undo & Excel's built-in Undo
    By dlh in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-30-2007, 05:02 PM
  7. [SOLVED] Excel data messed up after inserting & updating
    By Malky Wullur in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2005, 09:10 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