+ Reply to Thread
Results 1 to 8 of 8

Some formulas break when Lookup data is moved?

  1. #1
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Some formulas break when Lookup data is moved?

    This is really puzzling me.

    I Have attached a sheet where the formulas work but if cells AC1:AE10 are moved down a row (shift-delete / cntrl-v) the formulas (in U3:AA10) break. I am really puzzled why only those cells break and the rest (the cells below those in u:aa) don't... actually, I'm puzzled why they break in the first place.

    This is a very small sample of the actual data being used and number of rows changes year to year.

    Thank you in advance for your assistance.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Some formulas break when Lookup data is moved?

    I tried changing the whole column references in both LOOKUP calls in U:AA.

    That did the trick.

    if cells AC1:AE10 are moved down a row (shift-delete / cntrl-v) the formulas (in U3:AA10) break. I am really puzzled why only those cells break and the rest (the cells below those in u:aa) don't... actually, I'm puzzled why they break in the first place.
    I can't articulate well why that happens. But you are trying to move a section (AC1:AE10) of a whole range AC:AE. AC:AE has to accommodate that with no place to "move". It's out of rows.

    Hope that helps.
    Dave

  3. #3
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Some formulas break when Lookup data is moved?

    Since the conference name column will expand and contract (depending on the conferences involved), I guess I will need to determine the last row of names and use the cell reference that holds that variable. It still confuses me as to why only the first conference section breaks and not the others (and yes, the behavior was the same when there was almost 200 players listed for each conference).

    Thank you.

    If there is another solution out there - I am open to it.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Some formulas break when Lookup data is moved?

    Hi CWatson,

    Try this formula in AE2 instead of your CSE formula,

    =LOOKUP(2,1/(A:A=AC2),ROW(A:A))

    Perhaps the problem occurs when you try to edit a single formula in a range of CSE formulas?

    Let us know what happens with the above formula in AE2.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Some formulas break when Lookup data is moved?

    Hi MarvinP - I will use your formula for AE2 (actually AE3 and down since I moved that whole section down a row) but it still breaks the section for the A-10 conference.

    While defining the rows for the conference names works (in ac:ae) and I will change my formulas in u:aa to reflect that, it still peaks my curiosity as to why just the first section (for the A-10 conference) doesn't work when the rest of the rows work fine.

    It can't have anything to do with moving the formulas in ac:ae down a row because when I start fresh, with ac:ae starting in row 3, the A-10 conference still doesn't work. It has to be something with the lookup formula. When I ran the lookup all by itself, it still didn't work.

    If I put =LOOKUP($A5,$AC:$AD) in AF5 and =LOOKUP($A5,$AC:$AE) in AG5, I get errors. If I copy and paste those formulas down, I get errors until AF11 and AG11 (where the AAC conference starts) and then it works just fine.

    Okay, now it sounds like I am just rambling.

    Thank you for your help - I don't know if I should mark this solved or not...
    Last edited by CWatsonJr; 04-13-2018 at 10:16 AM.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Some formulas break when Lookup data is moved?

    Hey Cliff,

    If you select the cell with the formula and then click on Formulas and Evaluate, you can step through the parts of the formula. It fails at the Lookup() part. I believe you should put row numbers on your AC:AE as these are entire columns.

    https://support.office.com/en-us/art...6-a70aa409b8a7

    When I get these types of errors, it is because I have a dollar sign in my formula that is wrong. When I move a formula down it misses a fixed range because I need an absolute range and not a relative one.

    You also have an Indirect() in here which complicates the formula, only wanting to look at column I, but the Lookup() is what evaluates incorrectly first.

  7. #7
    Forum Contributor
    Join Date
    02-27-2004
    Location
    California, United States
    MS-Off Ver
    Excel 2016
    Posts
    315

    Re: Some formulas break when Lookup data is moved?

    Thank you for the reply MarvinP.

    I am in the process of changing the formulas in u:aa (ac:ai) to absolute references (I have over 5k rows to copy down once I get the first row done). I'm also moving the conference list to a helper tab, so I am having to change the reference in those formulas (with additional INDIRECT functions to insert the last row of the conferences). I guess I'm just being thick headed in not understanding why the formulas in u:aa work starting at row 11 but not before that. I understand the LOOKUP function is the key to the error, I just don't understand why.

    So far I have only changed the first cell in U5 (it's actually AC5 in my real spreadsheet) and it works fine now that I have actually defined the rows for the conference list.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    (which effectively gives me this)
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Thank you again for your help!

    Cliff

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Some formulas break when Lookup data is moved?

    I am in the process of changing the formulas in u:aa (ac:ai) to absolute references (I have over 5k rows to copy down once I get the first row done)
    If you are not aware of it Excel has a Find and replace feature. That's what I used. Just select/highlight the range of U:AA down to the last row with formula.

    Then use Find and replace (Ctrl + H) and fill in the text boxes. Click find and replace all.

    That saves a ton of work.

    Hope that helps.

+ 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. Hyperlinks break randomly when files are NOT being moved
    By vickigayle in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2015, 02:24 PM
  2. Replies: 8
    Last Post: 09-03-2015, 02:05 PM
  3. Replies: 1
    Last Post: 09-25-2014, 03:28 PM
  4. [SOLVED] Cell values being moved to a new page but still be read by other formulas
    By Groovicles in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-10-2014, 12:08 PM
  5. [SOLVED] Moved my document now formulas dont work
    By BPG420 in forum Excel General
    Replies: 4
    Last Post: 07-31-2013, 01:51 PM
  6. [SOLVED] Page Break-What would cause a page break not to be moved?
    By HT in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-21-2005, 03:05 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