+ Reply to Thread
Results 1 to 6 of 6

Concatenate issue

  1. #1
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Concatenate issue

    Hi all.

    I have attached a document showing a issue i have when i am trying to do an 'IF' formula when there is Concatenate used in a cell.

    If someone could have a look at it for me and recommend a different term or way of making this work that will be great.

    Thanks
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-16-2012
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010 & 2007
    Posts
    66

    Re: Concatenate issue

    What are you trying to accomplish? By using Concatenate, you are making it a text cell. Excel is comparing two text values together, not looking at the numbers.

    Why are you using Concatenate on just one cell? Proof of principle? If you let us know what you are trying to accomplish, perhaps we can find a better solution.
    If I helped you, please give me reputation.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Concatenate issue

    Why are you using the CONCATENATE functions like that?

    The problem is that the CONCATENATE function returns a TEXT value even if it looks like a number.

    In Excel the TEXT value 18 is greater than the TEXT value 170 so your IF function is returning the correct result even though that's not the result you probably expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Concatenate issue

    First off, when you use Concatenate, you are creating a Text value, not a number, so if you wrap VALUE() around it, or mutiply it by 1, or =--Concatenate(, it will be a value your if statement can properly use
    (I'm assuming the single value in the concatenate was for demonstration purposes only )

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  5. #5
    Forum Contributor
    Join Date
    08-19-2012
    Location
    Sydney
    MS-Off Ver
    MS Office 365/16
    Posts
    282

    Re: Concatenate issue

    Hi all,

    Yes quite silly of me to use Concatenate. Using Value(..) works like a treat. Thanks for all your quite responses.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Concatenate issue

    It's not clear what you're wanting to do but you seem satisfied.

    Good luck!

+ 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