+ Reply to Thread
Results 1 to 4 of 4

Referencing rows to return value in column

  1. #1
    Registered User
    Join Date
    08-24-2018
    Location
    Montreal, Canada
    MS-Off Ver
    MS Office 2016
    Posts
    59

    Referencing rows to return value in column

    Afternoon All,

    I am looking for help and guidance in solving my latest problem...

    On the attached sheet i am looking to pull the sold units from column E to K on the order tab and put them into the corresponding row on the Masterworksheet tab.
    Basically taking a user friendly format for our customers and placing it into the format needed to upload into our system...

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Referencing rows to return value in column

    Paste this formula in Cell F2 on The Master Sheet

    Then Fill down

    =IF(ROW()<68,INDEX(ORDER!$F$20:$K$30,INT((ROW()-2)/6)+1,MOD(ROW()-2,6)+1),INDEX(ORDER!$E$34:$K$37,INT((ROW()-68)/7)+1,MOD(ROW()-68,7)+1))
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Referencing rows to return value in column

    Another options....
    For the QTY based on Tops...
    F2=INDEX(ORDER!$E$20:$K$37,MATCH(MasterWorksheet!$B2&" "&MasterWorksheet!$D2,INDEX(ORDER!$B$20:$B$37&" "&ORDER!$D$20:$D$37,0),0),MATCH($E2,IF(ISTEXT($E2),ORDER!$E$19:$K$19,ORDER!$E$33:$K$33),0))
    copied down

    BUT...
    you need to change the "numbers" in E68:E95 to real numbers - they are currently TEXT - you can see that the are left-aligned (real numbers , by default, are right aligned) and they have that small green triangle in the top left corner.

    For the unit price...
    G2=INDEX(ORDER!$M$20:$M$37,MATCH(MasterWorksheet!$B2&" "&MasterWorksheet!$D2,INDEX(ORDER!$B$20:$B$37&" "&ORDER!$D$20:$D$37,0),0),)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-24-2018
    Location
    Montreal, Canada
    MS-Off Ver
    MS Office 2016
    Posts
    59

    Re: Referencing rows to return value in column

    Thank you for the replies.

    Mehmetcik's suggestion worked perfectly.

    Cheers
    Ian

+ 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. Return a value from specific rows into a column
    By SJCBA in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2017, 02:27 AM
  2. Replies: 3
    Last Post: 06-07-2013, 02:28 PM
  3. From duplicate rows only return max value in a different column
    By STEFRILEY in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2013, 04:25 PM
  4. Replies: 3
    Last Post: 01-30-2013, 04:32 PM
  5. Replies: 2
    Last Post: 03-23-2012, 07:41 AM
  6. Function to return # of column with min value in selected rows
    By mr_espresso in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-24-2006, 04:00 PM
  7. [SOLVED] Return a value by referencing row and column labels?
    By Cellzman in forum Excel General
    Replies: 6
    Last Post: 12-02-2005, 12:15 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