+ Reply to Thread
Results 1 to 10 of 10

Using the if command

  1. #1
    Forum Contributor
    Join Date
    10-13-2008
    Location
    wales (uk)
    Posts
    113

    Using the if command

    Hello ther excel guru's

    I have a job monitoring spreadsheet im creating, I have a cell titled Technician and another with rate. There are 4 technicians with different hourly rates. Haw can I have the rate cell autonatically poulate the rate value which corresponds with the Technician? I have another sheet called data which I have got a table with the values on for reference.

    Any help would be great
    Last edited by ravihotwok; 05-11-2009 at 07:12 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Using the if command

    Bore da!

    You can populate the rate cell using lookup or index and match. Would you be able to post a sample of data?
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    10-13-2008
    Location
    wales (uk)
    Posts
    113

    Re: Using the if command

    bore da lol

    havnt a clue how to do that, hope fully this will help.

    On the data sheel there is a column titled technician with a list of four people. On the next column it is titled rate and then the correct values are illustrated adjacent the relevent technician. On another sheet called project sheet it is here I want one cell which has a drop down list for the techicians to determine what value goes into the rate cell

    im crap at explaining stuff like this.

    please explain if you can in laymans terms lol

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Using the if command

    OK,

    The following presumes that the technicians are named in the range A1:A4 on Sheet 1, and that your dropdown list is in A1 on Sheet 2.

    Enter this in B1 of Sheet2

    =INDEX(Sheet1!B1:B4,MATCH(Sheet2!A1,Sheet1!A1:A4,0))

    The Match part looks for Sheet2!A1 in Sheet1!A1:A4 and tells the Index part which row in Sheet1!B1:B4 to return.

  5. #5
    Forum Contributor
    Join Date
    10-13-2008
    Location
    wales (uk)
    Posts
    113

    Re: Using the if command

    tried to paste that into the cell but it prompts a dialog boxing asking to save values to a sheet??

  6. #6
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Using the if command

    You'll have to modify it to your own sheet names and ranges.

  7. #7
    Forum Contributor
    Join Date
    10-13-2008
    Location
    wales (uk)
    Posts
    113

    Re: Using the if command

    note sure what ive done, here is my ammendments
    =INDEX(Data!C2:C5,MATCH(Blank Project Sheet!F24,Data!B2:B5,0))

    it is saying #name?

  8. #8
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Using the if command

    Try this:

    =INDEX(Data!C2:C5,MATCH('Blank Project Sheet'!F24,Data!B2:B5,0))

    If that doesn't work, can you upload your file?

    Press the "Go Advanced" button, and then "manage attachments" on the next page

  9. #9
    Forum Contributor
    Join Date
    10-13-2008
    Location
    wales (uk)
    Posts
    113

    Re: Using the if command

    you bang on the money dave, spot on!!
    is there a way to leave the cell blank when not in use instead of displaying #n/a

  10. #10
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Using the if command

    Yes,

    You can either use conditional formatting to colour errors white, or modify the formula

    =IF(ISNUMBER(MATCH('Blank Project Sheet'!F24,Data!B2:B5,0)),INDEX(Data!C2:C5,MATCH('Blank Project Sheet'!F24,Data!B2:B5,0)),"")

+ 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