+ Reply to Thread
Results 1 to 4 of 4

If two cells contain certain text

Hybrid View

WCE_123 If two cells contain certain... 03-21-2014, 09:00 AM
etaf Re: If two cells contain... 03-21-2014, 09:12 AM
haripopuri Re: If two cells contain... 03-21-2014, 09:12 AM
etaf Re: If two cells contain... 03-21-2014, 09:30 AM
  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    N.Wales
    MS-Off Ver
    Excel 2010
    Posts
    63

    If two cells contain certain text

    Hi,

    I would like to look at cell -

    a1 this will contain - 'Double Pg Input' or 'Single Pg Input' (txt)

    b1 will contain - 'Pg1' or 'Pg2' or 'Pg3' or 'Pg4' (txt)

    If a1 contains 'Double Pg Input' & b1 contains 'Pg1' then I would like c1 to show 'D1'

    If a1 contains 'Single Pg Input' & b1 contains 'Pg1' then I would like c1 to show 'S1'

    If a1 contains 'Double Pg Input' & b1 contains 'Pg2' then I would like c1 to show 'D2'

    If a1 contains 'Single Pg Input' & b1 contains 'Pg2' then I would like c1 to show 'S2'

    And so on.

    Hope you can help

    Cheers

    WCE

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: If two cells contain certain text

    what happens with Pg3 & Pg4

    =IF(AND(A1="Double Pg Input",B1="Pg1"),"D1",IF(AND(A1="Double Pg Input",B1="Pg2"),"D2",IF(AND(A1="Single Pg Input",B1="Pg1"),"S1",IF(AND(A1="Single Pg Input",B1="Pg2"),"S2","Not Valid"))))
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2012
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003, 2007, 2010
    Posts
    564

    Re: If two cells contain certain text

    =left(a1,1)&right(b1,1)

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,103

    Re: If two cells contain certain text

    haripopuri wow - missed that, looked at it a few times, and was sure we i could simplify - but thats cool

    added to your rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 04-08-2015, 08:10 AM
  2. Replies: 2
    Last Post: 09-07-2013, 07:50 PM
  3. Find duplicate text in cells in column, then give names of cells containing duplicate text
    By spelunkerforlife in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 10:13 AM
  4. [SOLVED] Splitting text from one cell into separate text fragments, Located in adjacent cells
    By onsid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2013, 08:32 PM
  5. Replies: 6
    Last Post: 02-23-2012, 09:56 AM

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