+ Reply to Thread
Results 1 to 5 of 5

Checking two cells for text, returning one value

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    -
    MS-Off Ver
    Excel 2003
    Posts
    11

    Checking two cells for text, returning one value

    Hi All,

    I have cells E21 and E22 in 01 (tab/worksheet name) which users will fill in accordingly. Only one cell will be filled in at any one time, e.g. Either E21 or E22 will have text but am unsure as to which one users will use etc.

    In my summary sheet i have a field in cell H7. In this field i need to extract the data from either E21 or E22 and populate this field with what was typed in E21 or E22.

    Im guessing i need to use an IF or OR statement but cant seem to get it to work.

    e.g. if(istext('01'!E21),....

    Any help much appreciated.

  2. #2
    Registered User
    Join Date
    06-01-2009
    Location
    India
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    66

    Post Re: Checking two cells for text, returning one value

    Use this in cell H7 of summary sheet:

    Please Login or Register  to view this content.
    Mohit Khurana, CFA

    Excel Matic - A blog on MS Excel

    List of Essential Excel Shortcuts

    e-Book on Excel Math Functions

    Please add to our reputation if you find our replies as helpful.

  3. #3
    Registered User
    Join Date
    06-09-2009
    Location
    -
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Checking two cells for text, returning one value

    Thanks for your help mate. Much appreciated.

    - Sdaddy

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Checking two cells for text, returning one value

    If as you say only one is ever populated and assuming entries are not numbers (not clear) you could avoid IF using REPT:

    =REPT('01'!E21&'01'!E22,1)

    To handle possibility of both being populated

    =TRIM(REPT('01'!E21&" "&'01'!E22,1))

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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