+ Reply to Thread
Results 1 to 12 of 12

moving long formula to new sheet,

  1. #1
    Registered User
    Join Date
    05-10-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    18

    moving long formula to new sheet,

    Hi All New to the forum,

    I have a problem with following:
    I have shipments arriving to my warehouse and I need to create manifest for boys with details, (cartons, weight etc) based on search criteria “departure date” Cell: V13
    At the moment I have a sheet (for each month) with “my” manifest and in the same sheet manifest for the warehouse. Manifest for Warehouse is generated based on “departure date” Cell: V13 and is searching for all shipment that where shipped that day.
    all works ok but now I need to move warehouse manifest to different sheet (in the same excel file)
    is there any way to keep my setup for warehouse manifest in new sheet, as I was trying (without success ) to move the formula in L column and amended but I am not a “guru” – Yet.

    Formula that I need to move:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Example attached,
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,529

    Re: moving long formula to new sheet,

    Bit Heath Robinson but it seems to work.

    See attached example.
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: moving long formula to new sheet,

    Hello and welcome to the forum.

    First off, you can shorten that formula to this:
    =IFERROR(INDEX(B:B,SMALL(IF(A$8:A$12=V$13,ROW($A$8:$A$12)),ROWS($1:1))),"") Ctrl Shift Enter

    or the non-array equivalent:
    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($A$8:$A$12)/(A$8:A$12=V$13),ROWS($1:1))),"")

    Now, if you want to move the info in cells A7:J12 to a different sheet, let's say the same cells in Sheet2, all that you have to do is include sheet references like this:
    =IFERROR(INDEX('Sheet2'!B:B,AGGREGATE(15,6,ROW('Sheet2'!$A$8:$A$12)/('Sheet2'!A$8:A$12=V$13),ROWS($1:1))),"")

  4. #4
    Registered User
    Join Date
    05-10-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    18

    Re: moving long formula to new sheet,

    hi TMS,

    in Sheet2 try to change date from 1st april to 3rd. i was coming to the same problem. its not working. but thank you.

  5. #5
    Registered User
    Join Date
    05-10-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    18

    Re: moving long formula to new sheet,

    63falcondude, you are guru!
    works great. thank you.

    Add Reputation - click!

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: moving long formula to new sheet,

    Happy to help. Thanks for the rep!

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

  7. #7
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: moving long formula to new sheet,

    Similar to @63falcondude, and work for me

    See the file
    Attached Files Attached Files

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,529

    Re: moving long formula to new sheet,

    Ok, attempt number 2 … see attached example
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-10-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    18

    Re: moving long formula to new sheet,

    thank you all for the help.

    now as i said "my" manifest will be on each sheet (each month on separate sheet) now if we use Sheet2 as warehouse manifest. and sheet1 as April
    can we add to formula to have possibility to change month, something like let say in cell N1 will say its April (name of the tab) and will that data from there, them N1 will be May (name of tab) and will do the same

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: moving long formula to new sheet,

    If I am understanding you correctly, you can use this in L18:

    =IFERROR(INDEX(INDIRECT("'"&N$1&"'!B:B"),AGGREGATE(15,6,ROW(INDIRECT("'"&N$1&"'!A8:A12"))/(INDIRECT("'"&N$1&"'!A8:A12")=V$13),ROWS($1:1))),"")

    Drag the formula down.

    Note that the other columns would have to get the INDIRECT too, which is a volatile function.

    See attachment.
    Attached Files Attached Files
    Last edited by 63falcondude; 05-14-2019 at 12:42 PM.

  11. #11
    Registered User
    Join Date
    05-10-2019
    Location
    London
    MS-Off Ver
    2016
    Posts
    18

    Re: moving long formula to new sheet,

    You guys are the Best!
    thank you 63falcondude you my friend are the best of the best ;0)

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: moving long formula to new sheet,

    You're welcome. Happy to help.

+ 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] Formula too long - Need to change sheet reference
    By michaljireht in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-20-2015, 10:08 AM
  2. Formula too long - too many sheet names
    By Greed in forum Excel General
    Replies: 2
    Last Post: 11-28-2011, 11:08 AM
  3. Help with long formula in costing sheet
    By chrisd3 in forum Excel General
    Replies: 12
    Last Post: 01-13-2011, 02:00 PM
  4. Moving one long column into adjacent columns
    By mugarolla in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-22-2010, 11:41 AM
  5. How to reference a different sheet with a long formula?
    By djarcadian in forum Excel General
    Replies: 5
    Last Post: 02-28-2008, 09:01 AM
  6. [SOLVED] Moving to end of long columns
    By Bob W in forum Excel General
    Replies: 4
    Last Post: 04-10-2006, 09:00 AM
  7. formula for automatic moving of data from sheet to sheet
    By kdalton1964 in forum Excel General
    Replies: 0
    Last Post: 02-27-2005, 02:23 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