+ Reply to Thread
Results 1 to 35 of 35

Spread Sheet Formulas and Drop Down

Hybrid View

  1. #1
    Registered User
    Join Date
    05-13-2008
    Posts
    19

    Spread Sheet Formulas and Drop Down

    Hello All,

    I consider myself pretty good with excel, but there are still areas that I am not very good in. Today I was tasked to create a sheet that would allow lower units to request orders. In the sheet my boss wanted to see the cost per soldier we put on orders. That comes from the cost of roundtrip travel and how many days they will be getting paid. That is based off their rank. My problem is this, I am attaching the sheet. I created a workbook with two sheets. The first sheet is the actual sheet they will put the information, I hope to have it figure everything also. In that sheet is a column for Rank. I would like to have a drop down menu for that, I have tried but cannot get it to work. I would also like when someone selects a rank it automatically populates the next column which is "1 UTA". So what I am trying to do is this. Say the persons rank is E7, when they select that from the drop down, the next column automatically populates how much they make for one uta. On my second sheet I have the ranks and the amount they get paid for one uta. If someone could tell me how to do this, I can do the basic math to get a total. I am attaching the sheet. please fell free to e-mail me directly at [email protected] any help is greatly appreciated, or call at 785-274-1547, as you can guess I am in the military. Thanks for any help.

    MarK
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You need to use Data validation see-

    http://www.excel-it.com/data_validation.htm

    Then use VLOOKUP to get the corresponding cost
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    Hi,
    You need to name the range with the list, then in data validation, in the source box type =list
    I have attached an example with the vlookup formula
    Attached Files Attached Files

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

    First I defined a named range by going to Insert|Name|Define and naming the range ='Rank & Pay Rate'!$C$4:$D$23 as "Ranks"

    Then I selected cell K4 and went to Data|Validation, chose List and entered formula: =INDEX(Ranks,,1)

    Then in L4, I entered formula : =VLOOKUP(K4,Ranks,2,0)

    To copy the validation down, select K4 and copy, then select rest of range and go to Edit|Paste Special and select Validation.

    To copy down formula, drag the little black square at the bottom right of the cell down as far as you need.
    Attached Files Attached Files
    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.

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Well....I guess you know what to do now..

  6. #6
    Registered User
    Join Date
    05-13-2008
    Posts
    19

    Thanks Everyone

    Wow what a response, I didn't expect that at all. Thanks so much. I tried following a lot of the instructions given, and still cannot get it to work. I think I may be doing something wrong. This is something I have always wanted to learn. I work with excel tons, but never to the degree of doing vlook up. I am going to add some more things and send what I got. I will try this with the instructions, wish me luck, if I run into a snag will post. Have to have this done today, so will be posting what I come up with. Thanks

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Take a look at the inventory sheet here

    http://www.excel-it.com/workbook_downloads.htm

    It uses VLOOKUP with Data validation.

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Just found this example of some LOOKUP Functions in my files
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    05-13-2008
    Posts
    19

    Ref Error in Sheet not matching Pay Chart Sheet for certain variables

    Anyone

    I sent the sheet out for use and there is a problem, I attaching the sheet so you can see what I am talking about. The sheet works great, but for some reason, anyone with the rank of e5 and below gives a ref error. When you select the rank and years in service it should automatically populate the pay based off the pay chart sheet. Everything above the rank of e5 and above works fine, just e5 and below. Can anyone help. Thanks
    Last edited by sabreclaw; 05-29-2008 at 10:24 AM.

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Your defined name for Scale is incorrect. You have the rows/columns width, length backwards. The correct formula should be
    =OFFSET('Pay Chart'!$D$3,0,0,COUNTA('Pay Chart'!$C:$C)-1,COUNT('Pay Chart'!$2:$2))
    Does that work?

    ChemistB

  11. #11
    Registered User
    Join Date
    05-13-2008
    Posts
    19

    No Luck

    I used the formula you sent, and it did not match the data on the pay sheet... Like the formula above...if I put in their rank, then the years of service, it automatically references the pay chart and gives me what their pay would be. When I input the formula you sent it changed the pay but that amount didn't match the rank or years in service
    Last edited by sabreclaw; 05-29-2008 at 10:05 AM.

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    sabreclaw

    Please read the Forum Rules & amend your Thread Title

  13. #13
    Registered User
    Join Date
    05-13-2008
    Posts
    19

    Done

    Sorry about that, I was in a hurry and didn't think about what I was writing, changed thread name. Sorry again, and thanks for pointing it out.

    Sabre

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Are you putting that formula in the right place (Defined names)? Here's my amended spreadsheet.

    ChemistB
    Attached Files Attached Files

+ 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