+ Reply to Thread
Results 1 to 4 of 4

IF cell = "string" Display a corresponding cell

  1. #1
    Registered User
    Join Date
    06-01-2010
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    IF cell = "string" Display a corresponding cell

    Hi all,

    I'm not sure if this is possible but it since I've joined Excel Forum it seems like anything in Excel is possible lol.

    IF A1 = "String"
    Display corrasponding cell B1

    It's a little more complicated then it sounds, please see attached example.

    Thanks!
    Attached Files Attached Files
    Last edited by Barrelroll; 06-03-2010 at 09:26 PM.

  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 cell = "string" Display a corrasponding cell

    If I understood you correctly, then put in E3:

    =COUNTIF($C$4:$C$11,E2) and copy to F3,

    Then in E4 put:

    =
    Please Login or Register  to view this content.
    confirm this formula with CTRL+SHIFT+ENTER not just ENTER and then copy it to next column and down as far as you need.

    This will extract the Areas for which B has the corresponding Type
    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 mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: IF cell = "string" Display a corrasponding cell

    You could select E4:E25 and enter the array formula

    =INDEX($B:$B,SMALL(IF($C$4:$C$100=E2,ROW($C$4:$C$100),999),ROW($1:$100)),1)&""

    Selecting E4:F25 and filling right will take care of the second column.

    This formula needs to be entered with Ctrl-Shift-Enter (Cmd+Return for Mac)
    Attached Files Attached Files
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  4. #4
    Registered User
    Join Date
    06-01-2010
    Location
    NSW, Australia
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: IF cell = "string" Display a corrasponding cell

    Quote Originally Posted by NBVC View Post
    If I understood you correctly, then put in E3:

    =COUNTIF($C$4:$C$11,E2) and copy to F3,

    Then in E4 put:

    =
    Please Login or Register  to view this content.
    confirm this formula with CTRL+SHIFT+ENTER not just ENTER and then copy it to next column and down as far as you need.

    This will extract the Areas for which B has the corresponding Type
    Damn you guys are good! lol
    Thank you very much for that.

+ 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