+ Reply to Thread
Results 1 to 6 of 6

Return text in cell from value in another cell

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Malta
    MS-Off Ver
    Excel 2003
    Posts
    18

    Return text in cell from value in another cell

    Hi All,
    I need assistance is solving this one. I'm a good excel user but this one is baffling me.
    I work with MS Excel 2003. I have a table with Material Description and Prices for 6 different types.
    I would like to have a formula returning the Material and Type from the value I input in a cell. Have tried with sumproduct, Index and Match but, hey, no success. I attach a copy of the file so that I may get the right assistance from the right people. The attached file is a small sample of my actual file which is very big.

    Thanks to all
    M
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Return text in cell from value in another cell

    What is the expected result of D15 and C15?


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    09-11-2008
    Location
    malta
    Posts
    34

    Re: Return text in cell from value in another cell

    It's got to be searched from the Master Table and in my case it should be B15=PVC and C15=Type 1.
    M

  4. #4
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Return text in cell from value in another cell

    You may try:
    B15: =INDEX($B$3:$B$7,MIN(IF($C$3:$H$7=$D15,ROW(C3:H7)-2)))
    C15: =INDEX($C$2:$H$2,MIN(IF($C$3:$H$7=$D15,COLUMN($C$3:$H$7)-2)))

    both formulas must be entered with Ctrl+Shift+Enter
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Return text in cell from value in another cell

    Does the attached help (non array formulas) ? Of course if there are two identical values....
    Attached Files Attached Files

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Return text in cell from value in another cell

    In B15 Cell

    =INDEX(B3:B7,SUMPRODUCT(1*MAX((C3:H7=D15)*ROW(C3:H7)))-MIN(ROW(C3:H7))+1)

    In C15 Cell

    =INDEX(C2:H2,,SUMPRODUCT(1*MAX((C3:H7=D15)*COLUMN(C3:H7)))-MIN(COLUMN(C3:H7))+1)

+ 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. Replies: 5
    Last Post: 01-06-2014, 05:33 AM
  2. Search cell for multiple text , return comma separated text in separate cell if found
    By dangerdoug in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 01:52 PM
  3. If cell contains text1, text2 or text 3 return this text, otherwise return X
    By bukmanodrama in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2013, 09:24 AM
  4. Replies: 4
    Last Post: 05-12-2011, 02:25 PM
  5. Compare text in a cell with the text in the previous cell and return a value
    By kinley in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-09-2010, 04:14 AM

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