+ Reply to Thread
Results 1 to 6 of 6

I made a big mistake, can someone help me? cell need to relocate if special condition

  1. #1
    Registered User
    Join Date
    12-26-2015
    Location
    Chambersburg,Pennsylvania
    MS-Off Ver
    2013
    Posts
    7

    I made a big mistake, can someone help me? cell need to relocate if special condition

    Good morning and Merry Christmas.
    I made a big mistake, I hope someone can help me fixing this.

    Ok, So after doing some data entry of Shelves ( approx. 7500 Shelves. ) I notice a data entry location being incorrect.

    As I am listing each shelf per row one after another , I also subdivide them by the number of Racks that 1 shelf can be composed of.
    For example: 1 Shelf can have 1 Rack. in this instance 1 Shelf will be 1 Row.
    Most of the cases, each shelves are composed between 1 to 7 rack.
    Each Rack as a Rack ID varying from A to G, so if I have a Shelf with 3 Rack, I will then have 3 row A, B, C .
    So each Shelf have to show the state of the highest Rack withing the Shelf, it can be either "OPEN ON TOP" or "CLOSE ON TOP"

    The mistake I made, is that all the Shelf state are located within the same Row as Rack ID A, Big mistake.
    Each Shelf state should have been against the most highest Rack ID within each Shelf. could be A, B ,C, D, E, F or G for example, but on that particular Row, not against Rom A being the bottom Rack of a Shelf.

    So I was wondering if someone can help me, I am searching for a formula that will accomplish the review of my Column G = Rack ID , and column S= Shelf State ( OPEN ON TOP / CLOSE OF TOP ) , and return the state against the highest Rack ID of each Shelf block.

    Thank you so much for your help, as i am getting pretty desperate here.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: I made a big mistake, can someone help me? cell need to relocate if special condition

    Hi, if I read your request correctly, I believe this next formula will provide what you are looking for.

    Enter this in Cell T4 (with ctrl-shift-enter) and copy down
    =IF(G5="A",INDIRECT("S"&MAX(ROW($1:4)*($G$1:G4="A"))),"")

    Oh...the very last one won't work as it applies the formula only if the next line contains an A.
    I assumed every rack starts with A, if not then the "IF" part that starts the formula won't work.

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

    Re: I made a big mistake, can someone help me? cell need to relocate if special condition

    If understand correctly try ..

    in S4 /T4

    =IF(F4=F5,"","Open on top")

    Copy down

  4. #4
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    604

    Re: I made a big mistake, can someone help me? cell need to relocate if special condition

    If my thinking was right, and some racks start at B or C for example, then this small change will account for that.

    =IF(G5<G4,INDIRECT("S"&MAX(ROW($1:4)*($G$1:G4="A"))),"")

  5. #5
    Registered User
    Join Date
    12-26-2015
    Location
    Chambersburg,Pennsylvania
    MS-Off Ver
    2013
    Posts
    7

    Re: I made a big mistake, can someone help me? cell need to relocate if special condition

    I do see a light in the tunnel, such it is a big relief. I did try to use your formula, but i am not sure why my excel sheet is giving me a a faulty result ( #REF!) , instead of "OPEN ON TOP" or " CLOSE ON TOP" .
    But the Formula that you give me is on point in finding the correct cell where this result should be located.
    I have add it an attachment to show you the #REF! .

    By the way i truly appreciate your help it is amazing.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-26-2015
    Location
    Chambersburg,Pennsylvania
    MS-Off Ver
    2013
    Posts
    7

    Re: I made a big mistake, can someone help me? cell need to relocate if special condition

    You are my secret Santa! It worked like a Charm. Thank you so very much you rock.

+ 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] how to move/relocate a cell using keyboard and not mouse, shortcut
    By fight2 in forum Excel General
    Replies: 1
    Last Post: 03-08-2015, 01:24 AM
  2. [SOLVED] Search for a specific cell value and relocate the two cell to the right it !
    By Petter120 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2012, 11:14 AM
  3. made a stupid mistake... locked up workbook on initialize
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2011, 12:42 PM
  4. Excel 2007 : Made a mistake under Advanced Options...
    By Hullonian in forum Excel General
    Replies: 2
    Last Post: 09-02-2010, 01:07 PM
  5. Need to export to csv with a special condition
    By jiggy2001 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2010, 10:36 PM
  6. Newbee made a big mistake
    By [email protected] in forum Excel General
    Replies: 2
    Last Post: 07-12-2006, 03:25 AM
  7. I made a terrible mistake and need help
    By Ray in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-30-2005, 02:06 PM

Tags for this Thread

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