+ Reply to Thread
Results 1 to 8 of 8

data validation problem

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    jordan
    MS-Off Ver
    Excel 2007
    Posts
    30

    data validation problem

    hi

    what i want is the following
    1- suppose i insert the aircraft registration in cell b7 (jyayv)
    2- fuel density in b9 (2.88)
    3- the data validation in cell b8 should do the following
    a- identify the aircraft type from table f5:g33 ( b7=jyayv then from said table the aircraft type is A321)
    b- from table i4:s48 find fuel density 2.88 column and maximum fuel entered should be 20500. if fuel density
    is changed to 2.91 them max. fuel should be 21000 again if we change fuel density to 3.03 then max. fuel
    is 21500 and so forth.
    same logic should be applied to all aircraft registration

    thank you much

    fuel.xlsx

  2. #2
    Registered User
    Join Date
    03-05-2014
    Location
    Grand Rapids, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: data validation problem

    I would put all of your "tables" on separate worksheets within the workbook first, then use VLookup to popluate the fields based on the registration number... Sorry I don't have time to update your sheet to show you how its done right now, I may get a chance to after I leave work today.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: data validation problem

    Made a mod to you file (using merged cells may look nice but Excel has serious problems working with these) and used the vlookup function to identify aircraft.

    Not sure I understand the rest of your problem. I'm also a bit puzzled by the fuel density as aviation turbine kerosene has a density in the range of
    0.77 to 0.79 g/cm3

    Alf
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-07-2014
    Location
    jordan
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: data validation problem

    after identifying the correct aircraft type ( in this case A321) should go to the appropriate table ( in this case a321 ) and based on the the fuel density the maximum fuel ammount can be accepted in cell b8
    if fuel density 2.88 max. fuel should not exceed 20500
    2.91 then max. fuel should not exceed 21000 and so on.
    regarding fuel density it can be measured in three ways

    Fuel Density

    NO. kg/L Kg/ USG LB/ USG

    1 0.76 2.88 6.34
    2 0.77 2.91 6.43
    3 0.78 2.95 6.51
    4 785 2.97 6.55
    5 0.79 2.99 6.59
    6 0.8 3.03 6.68
    7 0.81 3.07 6.76
    8 0.82 3.1 6.84

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

    Re: data validation problem

    This appears to be one of a series of questions posed concerning several aircraft types. Is there an end goal that these questions are aimed at? If so, it might be an advantage to know what the end goal is as there likely are people here with an aviation background either civil or commercial that can better help if they knew where all this is leading.
    <---------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

  6. #6
    Registered User
    Join Date
    03-07-2014
    Location
    jordan
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: data validation problem

    i did acheive my goal but these are the final fine tunes if i could acheive woud be better.

  7. #7
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: data validation problem

    Hi naderassaleh,

    I've included a macro that does the following:
    1) When the Aircraft Registration (dropdown list) is changed, the Aircraft Type is updated in Cell G7.
    2) When the Fuel Density (dropdown list) is changed, the Fuel Amount is updated in Cell G8.

    This macro loops the aircraft type sheet for the first fuel density that is blank, then looks at the fuel amount for the row above, which is the total fuel amount for the fuel density selected in the dropdown list.

    **Note I've moved all the data for each aircraft to their individual sheets. This makes things alot easier when looking up data.
    Attached Files Attached Files
    Last edited by Xx7; 04-08-2014 at 01:18 PM.

  8. #8
    Registered User
    Join Date
    03-07-2014
    Location
    jordan
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: data validation problem

    thank you much

+ 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. [SOLVED] Data validation problem
    By Adamlearnexcel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-17-2012, 09:36 PM
  2. Data validation list multiple options problem when entering none validated data
    By ThomasCarter in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-02-2012, 05:53 AM
  3. Data Validation problem
    By EdMac in forum Excel General
    Replies: 0
    Last Post: 08-21-2006, 04:28 AM
  4. Data Validation problem
    By waltersanglea in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-21-2005, 05:06 AM
  5. Data validation problem
    By routeram in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2005, 09:27 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