+ Reply to Thread
Results 1 to 8 of 8

Adding a value to data validation list depending on what text is returned

  1. #1
    Registered User
    Join Date
    07-30-2015
    Location
    Sweden
    MS-Off Ver
    office 2013
    Posts
    5

    Adding a value to data validation list depending on what text is returned

    Hello,

    Tried googling for an hour and couldnt find what i needed.

    So im making a spreadsheet for a hotel, wich im hoping will produce a number depending on how many guest, if flight is included, if the adventure pack is included and if food is included or not.

    So far ive defined names for the different ones, and now id like to add a number to the text.

    For example "Number of guests = "3", then add flight cost of 1000 * 3 + if adventure pack=Yes then add 1000 * amount of guests, output number to cell X"

    Or split it into several numbers and i can just add them togheter in the end.

    "number of guests = "3", (Base cost * 3), output number to cell X"
    "adventure pack = (number of guests * 200), output to cell Y"
    add cell X + Y = Z

    Any help would be appriciated

    //dexel

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Adding a value to data validation list depending on what text is returned

    Something like the attached?
    Dexel Vacation Package Cost.xlsx
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,600

    Re: Adding a value to data validation list depending on what text is returned

    deleted....
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    07-30-2015
    Location
    Sweden
    MS-Off Ver
    office 2013
    Posts
    5

    Re: Adding a value to data validation list depending on what text is returned

    Dexel hotel cost.xlsx

    Something like that yes, but i want it in a dropdown list so that the hotel manager can easily use it.
    I dont have alot of excel knowledge, and the hotel manager is basically illiterate, both when it comes to reading and computers.


    Regards
    Dexel

  5. #5
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Adding a value to data validation list depending on what text is returned

    What part(s) of it do you want in a drop down list?

  6. #6
    Registered User
    Join Date
    07-30-2015
    Location
    Sweden
    MS-Off Ver
    office 2013
    Posts
    5

    Re: Adding a value to data validation list depending on what text is returned

    Ive tried to work on it a bit, right now id like field F2, H2 and J2 to say YES/NO, and do a calculation depending on B2 * certain amount and outup it into the respective 5 of each column.

    Also im not very happy wit the =CHOOSE setup for B3, not sure if its possible to make it in a better way.

    //dexel
    Attached Files Attached Files

  7. #7
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Adding a value to data validation list depending on what text is returned

    Um, it's in another language that I don't know, not sure if that will be an issue for me or not. I am confused as to what you want where. You say you want F2, H2 and J2 to say YES/NO....on which sheet? The data you have on both sheets in your example doesn't match what you are saying here so I'm kind of lost. Example, on the Blad1 sheet, F2, H2 and J2 have numeric values in them, so does F2 of the Data sheet. H2 and J2 of the Data sheet are blank.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding a value to data validation list depending on what text is returned

    I tried to translate your workbook using Google then tried to make the calculations (that made sense to me for the various categories). I made the assumption that the Food costs varies directly with the number of guests and the length of stay. I also made the assumption for the Adventure Pack that it was a per day per person charge.

    I made a lookup table for the number of guests to return the value for each number of guests and placed this formula in B3 instead of the long CHOOSE formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I think that you can easily make changes where my assumptions are not correct.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Data validation list, depending on other values in a row.
    By mulle1976 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-28-2014, 03:58 AM
  2. Adding Date Data Validation to cells with List Data Validation
    By biggtyme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-03-2013, 09:47 AM
  3. [SOLVED] multiple value returned from vlookup into a data validation list
    By myobreportguru in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-25-2013, 07:00 AM
  4. [SOLVED] multiple value returned from vlookup into a data validation list
    By icestationzbra in forum Excel General
    Replies: 5
    Last Post: 11-24-2012, 07:28 PM
  5. Data validation list depending on other cell
    By Skato in forum Excel General
    Replies: 1
    Last Post: 10-21-2010, 04:22 AM
  6. Adding text to a cell based on validation list
    By fmluder93 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-18-2008, 05:38 AM
  7. Clear cells depending on data validation list output
    By fergcu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2008, 05:11 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