+ Reply to Thread
Results 1 to 4 of 4

Applying numeric values in one cell based on text in another

  1. #1
    Registered User
    Join Date
    02-03-2006
    Posts
    1

    Applying numeric values in one cell based on text in another

    Hello All,

    New and young technical writer in a bit of a stew due to my inexperience with MS Excel formulas. The following outlines what I am attempting to do, likely very basic to you gurus out there so please forgive my newness to this.

    In my worksheet, Column A contains a repeating series of drop down menus created using data validation. The choices int he drop downs are the names of courses offered by my training department.

    In Column B I would like the number of billable hours each course is worth automatically entered based on which course they entered in column A. I know there is a simple formula to achieve this but I simply am hitting walls so far.

  2. #2
    Pete_UK
    Guest

    Re: Applying numeric values in one cell based on text in another

    You will need to build up a table somewhere which lists all the courses
    on offer together with the billable hours. You may already have half of
    this - the lists for your data validation drop-downs could have another
    column next to them with the appropriate hours. Let's assume this table
    occupies cells L1 to M30.

    In cell B1 you can enter the formula:

    =IF(A1="","",VLOOKUP(A1,L$1:M$30,1,0))

    and this can be copied down. If you have not made a selection in column
    A then nothing will appear in B, but when you make a selection the
    appropriate number of hours will appear in B.

    Hope this helps.

    Pete


  3. #3
    Bernard Liengme
    Guest

    Re: Applying numeric values in one cell based on text in another

    Look in help under VLOOKUP; then come back with more questions
    best wishes
    --
    Bernard V Liengme
    www.stfx.ca/people/bliengme
    remove caps from email

    "Chi_TechWriter"
    <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hello All,
    >
    > New and young technical writer in a bit of a stew due to my
    > inexperience with MS Excel formulas. The following outlines what I am
    > attempting to do, likely very basic to you gurus out there so please
    > forgive my newness to this.
    >
    > In my worksheet, Column A contains a repeating series of drop down
    > menus created using data validation. The choices int he drop downs are
    > the names of courses offered by my training department.
    >
    > In Column B I would like the number of billable hours each course is
    > worth automatically entered based on which course they entered in
    > column A. I know there is a simple formula to achieve this but I simply
    > am hitting walls so far.
    >
    >
    > --
    > Chi_TechWriter
    > ------------------------------------------------------------------------
    > Chi_TechWriter's Profile:
    > http://www.excelforum.com/member.php...o&userid=31165
    > View this thread: http://www.excelforum.com/showthread...hreadid=508278
    >




  4. #4
    Pete_UK
    Guest

    Re: Applying numeric values in one cell based on text in another

    Sorry, the formula should be:

    =IF(A1="","",VLOOKUP(A1,L$1:M$30,2,0))

    i.e. return the data from the second column of the table.

    Pete


+ 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