+ Reply to Thread
Results 1 to 3 of 3

IF - value if true - text + formula

  1. #1
    Registered User
    Join Date
    08-31-2012
    Location
    Ukraine
    MS-Off Ver
    2013
    Posts
    25

    IF - value if true - text + formula

    Hello!

    I have a formula:
    =IF(COUNTIF($C$3:$C$5000,$C659)>1,MATCH(C659,$C$1:$C$5000,0),"")

    I want to have a text precending MATCH result: "Duplicate - "

    So what I want: if countif returns >1, I get "Duplicate - " text followed by result of MATCH function.

    I tried =IF(COUNTIF($C$3:$C$5000,$C659)>1,"Duplicate - " MATCH(C659,$C$1:$C$5000,0),"")
    and =IF(COUNTIF($C$3:$C$5000,$C659)>1,("Duplicate - " MATCH(C659,$C$1:$C$5000,0)),"") with no luck...

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,459

    Re: IF - value if true - text + formula

    Try this:

    =IF(COUNTIF($C$3:$C$5000,$C659)>1,"Duplicate - "&MATCH(C659,$C$1:$C$5000,0),"")

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-31-2012
    Location
    Ukraine
    MS-Off Ver
    2013
    Posts
    25

    Re: IF - value if true - text + formula

    Quote Originally Posted by Pete_UK View Post
    Try this:

    =IF(COUNTIF($C$3:$C$5000,$C659)>1,"Duplicate - "&MATCH(C659,$C$1:$C$5000,0),"")

    Hope this helps.

    Pete
    Yeah, great. Thanks... Such a simple solution..

+ 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