+ Reply to Thread
Results 1 to 4 of 4

Setting a Variable to have multpile values

  1. #1
    Registered User
    Join Date
    03-29-2009
    Location
    gainesville,fl
    MS-Off Ver
    Excel 2003
    Posts
    3

    Setting a Variable to have multpile values

    Hi,

    I'm trying to create a simple nutrition log on excel.

    For example, I want excel to display 5 in B1, 3 in C1, and 6 in D1 when i type in Bread in A1.


    How would i go about doing this?

    Plz help

    Thanks in advance

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: Setting a Variable to have multpile values

    Hi Arsenal, and welcome to the forum.

    Do you have a table of data somewhere in the workbook that tells you that the three values associated with Bread are 5, 3 and 6?

    If so, you may want to try VLOOKUP. I've attached an example for you to review. For specifics on the four arguments of VLOOKUP, check the Excel Help files.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-29-2009
    Location
    gainesville,fl
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Setting a Variable to have multpile values

    Thanks for the response. I used the help function on excel to find out more info on vlookup. But im still confused in what i need to select when it comes to look up value, table array, col index num, and range look up. I think you select ur data for table array, but everything else is still confusing to me. In addition, which cell needs to be highligthed when selecting vlookup.

    Further help will be appreciated with the example you attached

    Thank You!

  4. #4
    Registered User
    Join Date
    03-29-2009
    Location
    gainesville,fl
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Setting a Variable to have multpile values

    Actually, I just figured it out!

    Your example was exactly what i needed.

    Thank you for the help!

+ 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