+ Reply to Thread
Results 1 to 2 of 2

Need help to add a condition to a concatenate formula

Hybrid View

  1. #1
    Registered User
    Join Date
    02-01-2018
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    1

    Need help to add a condition to a concatenate formula

    I'm using the following formula to combine date and time data from multiple cells:
    =CONCAT(IF('JIRA Deploy Import'!H5<>"",CONCAT("G0 - ",TEXT('JIRA Deploy Import'!H5,"dddd"),", ",TEXT('JIRA Deploy Import'!H5,"mmmm dd,yyyy"),", ",TEXT('JIRA Deploy Import'!H5,"H:MM AM/PM"),",",TEXT(('JIRA Deploy Import'!I5-'JIRA Deploy Import'!H5),"H:MM")," hours & minutes"),""),"

    ",IF(('JIRA Deploy Import'!J5<>""),CONCAT("G1 - ",TEXT('JIRA Deploy Import'!J5,"dddd"),", ",TEXT('JIRA Deploy Import'!J5,"mmmm dd,yyyy"),", ",TEXT('JIRA Deploy Import'!J5,"H:MM AM/PM"),",",TEXT(('JIRA Deploy Import'!K5-'JIRA Deploy Import'!J5),"H:MM")," hours & minutes"),""),"

    ",IF('JIRA Deploy Import'!M5<>"",CONCAT("G2 - ",TEXT('JIRA Deploy Import'!M5,"dddd"),", ",TEXT('JIRA Deploy Import'!M5,"mmmm dd,yyyy"),", ",TEXT('JIRA Deploy Import'!M5,"H:MM AM/PM"),",",TEXT(('JIRA Deploy Import'!M5-'JIRA Deploy Import'!L5),"H:MM")," hours & minutes"),""))

    The characters G0, G1, and G2 represent regions where events are scheduled. It's working fine for concatenating the date to a single cell in a new sheet. However, sometimes we have the same date and time for events in different regions. Right now the formula just returns up to three different lines in the same cell. I'd like to be able to add a condition for the formula that identifies if the date and time are the same, and then just combine the G0 thru G2 characters if appropriate.

    Any suggestions?

  2. #2
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230
    Could you please attach a sample of your workbook? Please obscure/substitite sensitive data. Include enough data to be representative of your whole data set. Also include expected values.

    To do this click on:

    Reply>Go Advanced>Manage Attachments>Choose File>Upload>Close window>Submit Reply

    Youre situation is a little complicated. We feed on data.

+ 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. [SOLVED] Concatenate some value with condition
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2017, 05:12 AM
  2. CONCATENATE function with If Condition
    By Muthukumarang in forum Excel General
    Replies: 3
    Last Post: 01-26-2017, 11:54 AM
  3. Replies: 4
    Last Post: 09-03-2016, 07:45 AM
  4. Concatenate the cells on condition
    By kumark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-23-2014, 02:35 AM
  5. [SOLVED] concatenate based on a condition
    By tepke in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-10-2013, 07:03 AM
  6. Replies: 1
    Last Post: 12-20-2012, 04:18 PM
  7. CONCATENATE FOR TWO OR MORE CONDITION (vba)
    By ionmihairo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 12:50 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