+ Reply to Thread
Results 1 to 8 of 8

Enter a number and this generates another from a pre-set list

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Gibraltar
    MS-Off Ver
    Excel 365
    Posts
    38

    Question Enter a number and this generates another from a pre-set list

    Hi all,

    I'm trying to create a really simple sheet but it still beats me

    In a nutshell I have a column where I'd like to enter a number (0.5 - 128) and by doing so, this it would generate another number from a pre-set list in another column. E.g. I enter "16" (Bet) and in the next column it shows "31.5" (Spend).

    I feel a little dumb to be honest as I don't think it can be that hard, but have tried many times and searched the 'help' to no avail.

    Hence I'm here, begging assistance.
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Enter a number and this generates another from a pre-set list

    Try:

    =LOOKUP(B3,$J$2:$K$10)

    where B3 contains input
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  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,938

    Re: Enter a number and this generates another from a pre-set list

    not sure where you want to put this, but try using...
    =VLOOKUP(B3,$J$2:$K$10,2,FALSE)
    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
    05-01-2012
    Location
    Gibraltar
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Enter a number and this generates another from a pre-set list

    Wow, thank you very much for such a fast response.

    Sadly it didn't work, I receive a "Circular Reference Warning" and if I enter a number in B3 (e.g. 16) it simply subtracts that number in the "Spend" column next to it as opposed to "31.5" as hoped.

    I hope I've explained it correctly and I am grateful for any help.

  5. #5
    Registered User
    Join Date
    05-01-2012
    Location
    Gibraltar
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Enter a number and this generates another from a pre-set list

    Gosh, you guys are amazing!

    Never come across a site like this for helpfulness and speed... many many thanks both.

    FDibbins code worked perfectly and an Excel novice has learned something new.

    I'll tick the reputation boxes and say thank you once again.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Enter a number and this generates another from a pre-set list

    You don't put the formula in B3... B3 is the reference for your input.. the formula goes in another cell to pull the Spend from the table...

  7. #7
    Registered User
    Join Date
    05-01-2012
    Location
    Gibraltar
    MS-Off Ver
    Excel 365
    Posts
    38

    Re: Enter a number and this generates another from a pre-set list

    Edit... BOTH codes worked perfectly, I did enter it in the wrong place! Thank you so much.

  8. #8
    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,938

    Re: Enter a number and this generates another from a pre-set list

    glad to help and thanks for the star

+ 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