+ Reply to Thread
Results 1 to 4 of 4

IF a cell is a certain value, this cell should display 'x'

  1. #1
    Forum Contributor
    Join Date
    11-18-2010
    Location
    Dorset, England
    MS-Off Ver
    Excel 2010
    Posts
    100

    IF a cell is a certain value, this cell should display 'x'

    Hi guys!

    Having a little problem with trying to get a function working within Excel.
    Attached is the sheet I am working on.
    This is a simple function, so probably no problem for you Excel wizards out there .

    Basically..

    The D column contains data, such as H2, H3, J1, SO.
    Cells M2 - M6 are the values that I wish to be displayed within the E column.

    Basically, within the E column. If the cell in the D Column is, for example H2, E should display "Rig 2 Gang", if H3 then "Rig 3 Gang", if J1 then "Jobber", if SO nothing needs to be displayed as these are being deleted.

    Any help would be greatly appreciated

    Cheers,

    Nick
    Last edited by NickPDC; 01-26-2011 at 11:57 AM.

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

    Re: IF a cell is a certain value, this cell should display 'x'

    In L2:L6 add the corresponding column D possibilities, then you can use Vlookup

    e.g.

    =VLOOKUP(D2,$L$2:$M$6,2,0)

    copied down

    where L2:L6 contain, H1,H2, H3, H4, J1
    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.

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

    Re: IF a cell is a certain value, this cell should display 'x'

    or you can just use:

    =IF(D2="J1","Jobber","RIG "&RIGHT(D2)&" GANG")

    copied down.

  4. #4
    Forum Contributor
    Join Date
    11-18-2010
    Location
    Dorset, England
    MS-Off Ver
    Excel 2010
    Posts
    100

    Re: IF a cell is a certain value, this cell should display 'x'

    Absolutely brilliant!

    Thank you very much!

+ 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