+ Reply to Thread
Results 1 to 5 of 5

Getting Information off table into cells

  1. #1
    Registered User
    Join Date
    09-04-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Getting Information off table into cells

    Hi all,

    I am trying to create a form on excel spreadsheet with a list of names display from L1 to L10 and other information placed accordingly from N1 to N10, O1 to O10 and on

    e.g
    L_____N_______O
    Alex___2780X___BA2304
    Ben___8990B___CP7443
    Don___3351L___FP9800

    so that when the cell D24 displays the name, say Ben, the cell G4(which contains the formula) will show the corresponding information from N which reads 8990B

    I'm currently working with this formula below:

    =INDEX($N$1:$N$10,SUMPRODUCT(--(ISNUMBER(FIND($L$1:$L$10,D24)))*$N$1:$N$10))

    But the cell will just gives me an error of #VALUE

    May anyone help to look out whats the error with my formula.
    Will it work as well if i change the cells from 'N' to 'O' if i need it to read the corresponding information from O instead?
    Thanks! (Pardon my poor English and explanation)

    Cheers,
    Heva

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Getting Information off table into cells

    welcome to the forum, Heva. not sure where you need to use the SUMPRODUCT. this will give you the answer:
    =INDEX($N$1:$N$10,MATCH(D24,$L$1:$L$10,0))
    even VLOOKUP is possible:
    =VLOOKUP(D24,$L$1:$O$10,3,0)

    since you used FIND, i'm assuming you might want partial match, so maybe:
    =INDEX($N$1:$N$10,MATCH("*"&D24&"*",$L$1:$L$10,0))

    do note that this has its risk. if "Alex" is replaced by "Benedict", that's the first "Ben" it'll find & return that result instead. if it doesn't help you, upload a sample excel file & show us the desired results you want. if you need to change from Column "N" to "O", the INDEX formula will work. the VLOOKUP formula will be like this:
    =VLOOKUP(D24,$L$1:$O$10,4,0)
    Last edited by benishiryo; 09-09-2013 at 04:40 AM.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Getting Information off table into cells

    Hi Ben,

    Thanks for you assistance.
    As I am not trained in MS Excel formulas at all, so the formulas I am using as of current are bits and parts that I googled online and copy before editing them with trial and errors to fit into what I need.
    So I was not really sure of how does the "FIND" function affects the result in the end too.
    Thanks for explaining it to me.

    Just another question, for VLOOKUP how does the number towards the end of the formula (3 or 4) will affect the result?

    Quote Originally Posted by benishiryo View Post
    even VLOOKUP is possible:
    =VLOOKUP(D24,$L$1:$O$10,3,0)

    the VLOOKUP formula will be like this:
    =VLOOKUP(D24,$L$1:$O$10,4,0)

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Getting Information off table into cells

    you're very welcome. the lookup_value (D24) needs to be somewhere in the first column of the table_array ($L$1:$O$10). when it finds the value in the first column (i.e. L1:L10), you can choose to return the corresponding row in another column. to decide that will be where the 3 or 4 comes in. 3 would mean i want the 3rd column from L1:L10 & the would be N1:N10. 4 would be the 4th column & that would be O1:O10. hence, the table_array usually consist of at least 2 columns; 1 where you can can the lookup_value & the other where the desired results are. the 0 in the end simply means that you want an exact match. even a space found in the name "ben" will return an #N/A

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

  5. #5
    Registered User
    Join Date
    09-04-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Getting Information off table into cells

    I see
    Thanks for the detailed explanation!
    Will do so too!

    Cheers

+ 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. Heat Mapping by row for a table of information (or a pivot table)
    By jacebailes in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-06-2013, 06:22 PM
  2. Collect certain information from table
    By wrangler in forum Excel General
    Replies: 2
    Last Post: 06-21-2012, 05:28 PM
  3. Replies: 9
    Last Post: 03-29-2012, 06:11 AM
  4. How to group information from a table
    By paivatrafa in forum Excel General
    Replies: 1
    Last Post: 11-09-2011, 11:45 PM
  5. Looking up information from table
    By agu666 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-12-2010, 03:37 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