+ Reply to Thread
Results 1 to 11 of 11

If cell contains text display another cell

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    If cell contains text display another cell

    I need a formula.

    A1 1,2,3
    A2 4:00


    B1 4:00

    I need B1 to display A2 if A1 contains 1.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    In B1 Cell

    =IF(A1=1,A2,"")


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: If cell contains text display another cell

    Thanks for that.

    Now if A1 contains multiple numbers ie 1,3,4 etc

    How would that look?

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    Quote Originally Posted by The.don View Post
    Now if A1 contains multiple numbers ie 1,3,4 etc
    Find() Case Sensitivity....

    =IF(ISNUMBER(FIND(1,A1)),A2,"")

    Or

    =IF(ISNUMBER(SEARCH(1,A1)),A2,"")

    Or

    =IF(COUNTIF(A1,"*1*"),A2,"")

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: If cell contains text display another cell

    =IF(or(A1=1,A1=2,A1=3),A2,"")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    Or

    =IF(OR(A1={1,2,3}),A2,"")

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: If cell contains text display another cell

    Nice Six, I always forget the {} option

  8. #8
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    Quote Originally Posted by FDibbins View Post
    Nice Six, I always forget the {} option
    Me too... But not sure whether that Array {} combination suggestion will work for the OP, since OP running in Open Office

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,944

    Re: If cell contains text display another cell

    I think the other member we are both helping, is using OpenOffice, not this 1

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    Oopss... I confused it with another OP's version.

    Please ignore Post #8 version comment.

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: If cell contains text display another cell

    Quote Originally Posted by FDibbins View Post
    I think the other member we are both helping, is using OpenOffice, not this 1
    Yes, exactly and sorry for mis-interpreting the OP's name and the office versions....

+ 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. [SOLVED] Macro to use different cell as 'Text to display" in hyperlinked cell.
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-03-2014, 01:39 PM
  2. VBA - Import text from cell value and display in text box on cell mouse click
    By hemal89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2013, 07:20 AM
  3. Replies: 1
    Last Post: 06-15-2009, 11:28 PM
  4. Replies: 3
    Last Post: 02-09-2009, 11:16 AM
  5. Replies: 3
    Last Post: 07-08-2006, 02:45 PM

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