+ Reply to Thread
Results 1 to 8 of 8

=IF(ISTEXT..... formula only half works, it returns some sequential numbers but not others

  1. #1
    Registered User
    Join Date
    03-24-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not others

    Hi

    I have a formula that half works, =IF(ISTEXT(C19)+(F19),COUNTA($C$19:C19,$F$19:F19),"") This is currently returning sequential numbers correctly for the first part (the ISTEXTC19 and COUNTA($C$19:C19)) but returning 'value' for the cells where it is looking up text in column F.

    There is never text in the same row for column C and F. Can anyone point out where I'm going wrong?

    Thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    I would guess you need:
    =IF(AND(ISTEXT(C19),ISTEXT(F19))
    or
    =IF(OR(ISTEXT(C19),ISTEXT(F19))
    as your equality for the if statement looks iffy but it's not really clear what you are trying to do...

  3. #3
    Registered User
    Join Date
    03-24-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    Hi raguldy

    thank you for the reply, the suggestions you made did not really return what I hoped for but that's because my explanation was not great at all. I have mocked up something that hopefully means you will see what I am trying to achieve.

    In column C (Modal Message) and in column F (Action Message) are some text cells, these will be messages that appear in sequence and to help other users who will end up with my spread sheet I would like column B (message #) to have sequential numbers representing cells that have 'text' in them. This will be so I can say 'please look at message 5' for example and they can scan down and across. My little twist is that there are extra pieces of data in columns D (Data 1) and E (Data 2) that I do not want included in the number count in column B.

    Does that help?


    message # Modal Message Data 1 Data 2 Action Message Screen #
    1 Text
    2 Text
    Data Data
    #VALUE! Text 1
    4 Text
    5 Text
    6 Text
    #VALUE! Text 2
    8 Text
    Data Data
    Data Data
    #VALUE! Text 3
    #VALUE! Text 4
    11 Text
    12 Text
    Data Data
    #VALUE! Text 5
    14 Text
    #VALUE! Text 6


    So in column B the formula so far is =IF(ISTEXT(C19)+(F19),COUNTA($C$19:C19,$F$19:F19),"") which returns sequential numbers interspersed with '#value' which I would like to be proper numbers.

    The formula in column G is =IF(ISTEXT(F19),COUNTA($F$19:F19),"") which works perfectly.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    Hi - please upload an example workbook with an example of your data and the corresponding required results. To upload a workbook, click go advanced and then attachments.

  5. #5
    Registered User
    Join Date
    03-24-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    Thanks, I didn't see the go advanced section.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    Hi, change your formula in B3 to:
    =IF(OR(ISTEXT(C3),ISTEXT(F3)),COUNTA($C$3:C3,$F$3:F3),"")

  7. #7
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    =IF(ISTEXT(C19)+ISTEXT(F19),COUNTA($C$19:C19,$F$19:F19),"")
    Your formula is trying to add a true/false value to the value in a cell, so is returning Value.
    Put an ISTEXT in front of (F19)
    Click * below if this answer helped

  8. #8
    Registered User
    Join Date
    03-24-2014
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: =IF(ISTEXT..... formula only half works, it returns some sequential numbers but not ot

    Hurray!!!!!!

    Thank you so much! that works perfectly! Thank you, thank you, thank you!!!!!!

+ 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. excel 2007 formula works great but when open in 2010 returns##
    By lizsantiago07 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2013, 09:25 PM
  2. [SOLVED] Formula works but returns N/A
    By troysie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2013, 11:00 AM
  3. ISTEXT works in 1 workbook-not another
    By tessera in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2007, 07:43 AM
  4. [SOLVED] Works beautifully but stops half way through
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2006, 02:40 PM
  5. One Sumproduct Formula works - while other returns #VALUE!?
    By Correna in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2006, 09:10 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