+ Reply to Thread
Results 1 to 21 of 21

Matching column and row to get cell data result from different sheet.

  1. #1
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    Hello,
    i have a book full of item numbers for an ecommerce site. The template requires me to segregate the upload data.
    I need to Index RAW DATA on sheet10 and place into Sheet4.
    Step 1 is to find the matching Item# (Key data) and then read across that entire row to find the matching attribute name then take the next cell data to the right and place into sheet4.

    This is where I am now:
    =INDEX('Sheet10'!F2:I100,MATCH(Item#,'sheet4'!F2:F100,0)*(MATCH(Attribute Label,'Sheet4'!H2:H100,0))

    The attribute labels are not always in same column, which is why i need to read entire column data and find it then take the next cell which is the attribute value and place in the sheet4.

    here are the data point.

    Sheet4. ColU thrugh DZ1 have all the attribute labels.
    Sheet4. Row3 through Row50000 - ColL have all the item#s .

    The matching data reside on sheet10.
    Col-E has the item #'s and Col G Through DZ has the attribute labels and Attribute Values ACROSS each row with the item number.

    any help would be greatlu appreciate.
    Last edited by TinoBradica; 12-08-2018 at 10:31 AM.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Sure this is real simp[le. Just stuck.

    Try


    =INDEX(Sheet10!A:DZ,MATCH(Item#,Sheet10!E:E,FALSE),MATCH(AttributeLAbel,INDEX(Sheet10!A:DZ,MATCH(Item#,Sheet10!E:E,FALSE),0),FALSE)+1)


    You may need to add in $ for absolutes, depending on how you are copying the formula to other cells...
    Last edited by Bernie Deitrick; 12-06-2018 at 05:32 PM.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    FANTESTICLE...

    Where do I send the flowers.

    THANK YOU... I knew I was close. just needed the push....
    Last edited by TinoBradica; 12-08-2018 at 10:33 AM.

  4. #4
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    It works perfect.

    I am getting some bad results due to missing attribute label.

    it there a way to return a BLANK value if the formula is N/A or it cannot find the actual attribute label in the raw data.

    thanks,
    Last edited by TinoBradica; 12-08-2018 at 10:34 AM.

  5. #5
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    this is actual formula now. based on your input.


    =IF(ISERROR((INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),MATCH(U1,INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),0))+1))),"",(INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),MATCH(U1,INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),0))+1)))
    Last edited by TinoBradica; 12-08-2018 at 10:35 AM.

  6. #6
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Sure this is real simp[le. Just stuck.

    Great - but you should learn the IFERROR function:

    =INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),MATCH(U1,INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),0))+1)

    becomes

    =IFERROR(INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),MATCH(U1,INDEX('Uni-Data1'!$E:$DH,MATCH($L$3,'Uni-Data1'!$E:$E,0),0))+1),"")

    A little easier to understand and less processor-intesive since the long INDEX formula is not evaluated twice. Maybe not an issue but that can be...

  7. #7
    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,926

    Re: Sure this is real simp[le. Just stuck.

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    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

  8. #8
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    Hi,
    Sorry to bother you again. The formula is not working properly when it cannot find a match to the Attribute label.
    =IFERROR(INDEX(Fittings!$E:$DH,MATCH($L$4,Fittings!$E:$E,0),MATCH(Z1,INDEX(Fittings!$E:$DH,MATCH($L$4,Fittings!$E:$E,0),0))+1),"")

    it is returning a result of the first attribute value in the row.
    Z1 is the attribute label in the formula.

    Please help once more.

    thanks,
    Last edited by TinoBradica; 12-08-2018 at 10:32 AM.

  9. #9
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    the error is when i try to apply the formula across the row to the right. it reads the row fien as far as I can tell, but it will not take the right attribute value from the matching attribute label in Z1.
    Last edited by TinoBradica; 12-08-2018 at 10:34 AM.

  10. #10
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Matching column and row to get cell data result from different sheet.

    i attached a sample file to help
    Attached Files Attached Files
    Last edited by TinoBradica; 12-08-2018 at 10:36 AM. Reason: Administration request

  11. #11
    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,926

    Re: Sure this is real simp[le. Just stuck.

    You will get no further assistance until you have complied with my request in post #7

  12. #12
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Re: Matching column and row to get cell data result from different sheet.

    Done. So sorry. No disrespect intended.

  13. #13
    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,926

    Re: Matching column and row to get cell data result from different sheet.

    None taken, thanks for the title change

  14. #14
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Matching column and row to get cell data result from different sheet.

    Since the labels across the row are not unique, I used a column and a row of match formulas to simplify the function: see the attached.

  15. #15
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Re: Matching column and row to get cell data result from different sheet.

    Sorry I do not see attachment.

  16. #16
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Matching column and row to get cell data result from different sheet.

    Sorry - I will try again...
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Re: Matching column and row to get cell data result from different sheet.

    Hello,
    We are so close. I have enclosed a full file of ALL data.
    The problem with your approach is the labels are not always in the row in the same place. Or may not appear at all.
    Please look at Step 4 sheet ROW 2 - COL AI 1.
    The label Finish does not appear in item results for ROW 4 But does for ROW 5 in col 27 on the SHEET FITTINGS.

    This is why I was trying to match the item# first and then read the data in the matching row to find the attribute label and take the VALUE in next COLUMN.

    Your approach would work great if the labels were constant in same location and for all products.

    Thank you again for all your assistance.

  18. #18
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Re: Matching column and row to get cell data result from different sheet.

    file attached
    Attached Files Attached Files

  19. #19
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Matching column and row to get cell data result from different sheet.

    Try this one:
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    11-12-2018
    Location
    New York
    MS-Off Ver
    10
    Posts
    19

    Re: Matching column and row to get cell data result from different sheet.

    OMG.. Perfect. Thank you again so much.

  21. #21
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,937

    Re: Matching column and row to get cell data result from different sheet.

    Great - glad that it worked out..... eventually

+ 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] prorate real real estate taxes
    By InvGrp2 in forum Excel General
    Replies: 8
    Last Post: 11-10-2023, 11:05 AM
  2. [SOLVED] Stuck in VBA
    By Roeldh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2016, 08:31 AM
  3. Replies: 11
    Last Post: 03-16-2015, 10:36 AM
  4. Stuck Building A Dynamic Commercial Real Estate Model
    By tronix_Country in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-02-2012, 04:39 PM
  5. Stuck at work and stuck on a count function
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 12:47 AM
  6. Im so stuck
    By Thunderbird in forum Excel General
    Replies: 1
    Last Post: 04-21-2011, 12:48 AM
  7. Im stuck..
    By aidenjacks in forum Excel General
    Replies: 5
    Last Post: 07-14-2008, 01:22 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