+ Reply to Thread
Results 1 to 4 of 4

Concatenate ++++

  1. #1
    Forum Contributor Potholes's Avatar
    Join Date
    11-25-2011
    Location
    Brisbane
    MS-Off Ver
    Office 2021
    Posts
    774

    Lightbulb Concatenate ++++

    Good evening all

    I have tasked to create a database using Excel.

    The problem I have encounted is.

    In cell W2 a formular will produce a figure between 1 to 31

    Let's say that cell W2 has produced a number 28

    In Cell B2 I have the following formular

    =if(W2="","Yes",concatenate("Due in",W2," Days)

    What my formular in B2 is returning

    Due in 28.123542562 days

    What I need to do is have

    Due in 28 days



    Any help solving this would be appreciated.


    Peter

  2. #2
    Valued Forum Contributor
    Join Date
    09-17-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    Excel 2007
    Posts
    454

    Re: Concatenate ++++

    =if(W2="","Yes",concatenate("Due in",TEXT(W2,"#0")," Days)

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Concatenate ++++

    What you have there is probably date and time. If you want to get rid of it try:

    This will round it up or down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will just remove the decimals.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

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

    Re: Concatenate ++++

    Try it like this...

    =IF(W2="","Yes","Due in "&INT(W2)&" Day"&IF(W2<>1,"s",""))

    I've also added a test so that you won't get a result like:

    Due in 1 days ...

    Due in 1 day ...
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Concatenate with Double Info in Concatenate Cell
    By MRoz in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-10-2015, 02:07 PM
  2. Replies: 5
    Last Post: 08-28-2014, 06:01 PM
  3. [SOLVED] VBA concatenate script does not excute as expected, Concatenate and "&" can't be dragged
    By VBAlex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-07-2014, 09:25 AM
  4. Replies: 2
    Last Post: 04-12-2010, 12:35 PM
  5. Un - Concatenate?
    By JudithJubilee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 PM
  6. [SOLVED] IF, IF, Concatenate?
    By savvysam in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] I know how to concatenate ,can one de-concatenate to split date?
    By QUICK BOOKS PROBLEM- in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-26-2005, 01:05 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