+ Reply to Thread
Results 1 to 9 of 9

Formula copies down & across using table with two vertical conditions & one horizontal

  1. #1
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Formula copies down & across using table with two vertical conditions & one horizontal

    Hello

    Worked example attached.

    I have updated the explanation in the worked example so there is no history of the previous explanation.

    Ability to copy formula down & across without having to manually change the formula to skip yellow rows (revision dates)
    Take the characteritics in the table according to the variable PO in column D, variable date in row 1 and insert the Insert the characteristic (eg ADV) from the table in the relevant variable date (row1) and PO number (column D). The column date range in the table which is matched to the date variable in row 1, always takes the most recent date range according to the revision date to allow a history of the date changes can be retained. The Revision Date is simply a version control and are not matched against the variable dates in row 1.

    David
    Attached Files Attached Files
    Last edited by David Brown; 03-12-2013 at 06:00 AM. Reason: Request made for me to change explanation

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    Can you update your sample sheet? Remove all references to other formulas and all "examples" of data not relavant. List one excellent table of source data in the correct format, and manually mockup up complete set of results above in your table.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    Hello I have updated the example as you requested
    Thanks/DB

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    See if this workbook does as you need

    It uses Dynamic Named ranges

    Name:= "PurchaseOrder"
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Name:= "OrderData"
    Refers to
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Then in E2, Drag Across then Down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    In E2, copied down and across, my horrible monster formula...

    =IFERROR(INDEX(OFFSET($C$19, MATCH($D2,$C$20:$C$59,0), 1, 7,), MATCH(E$1, OFFSET($C$19, MATCH($D2, $C$20:$C$59, 0), MATCH(MAX(OFFSET($C$19, MATCH($D2, $C$20:$C$59,0)-1, , , 10)), OFFSET($C$19,MATCH($D2, $C$20:$C$59,0)-1, , , 10), 0)-1, 7, ), 0)), "")



    EDIT: Hat-tip to Marcol, I like that!
    Attached Files Attached Files
    Last edited by JBeaucaire; 03-12-2013 at 02:31 PM.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    @ JB, thanks for the hat-tip.

    The OPs' profile indicates 2003.

    IFERROR() is not available in 2003 and the nested IF(), ISERROR() becomes to long, or complicated for 2003 to accept, hence the use of named ranges.

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    The OP posted an xlsx file, so one presumes his profile is inaccurate.

  8. #8
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    Thanks for this proposed solution. I will study and apply.
    David

  9. #9
    Registered User
    Join Date
    09-28-2010
    Location
    Middle East
    MS-Off Ver
    Excel 2003
    Posts
    66

    Re: Formula copies down & across using table with two vertical conditions & one horizontal

    Thanks for proposed solution.
    David

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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