+ Reply to Thread
Results 1 to 5 of 5

How to CONCATENATE Nested IF formula without premature stopping

  1. #1
    Registered User
    Join Date
    05-31-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    How to CONCATENATE Nested IF formula without premature stopping

    This may just be a quirk of Excel, but I can't force Excel to complete all parts of a Concatenate Formula of nested IF functions.

    I've attached a file but the summary is I want to lookup three separate values from one cell and concatenate them all together.

    The problem is once excel finds one 'result' in this case a text "OPEN", then it will finish looking for any others.

    If there are no blanks then it works fine.

    Any advise is awesome!

    Capture.PNG

    Formula is;
    =IF(OR(A4="NIL",A4=""),"",IF(VLOOKUP(LEFT(A4,16),D4:E7,2,FALSE)="","OPEN",TEXT(VLOOKUP(LEFT(A4,16),D4:E7,2,FALSE),"dd mmm yyyy")&" "&IF(VLOOKUP(MID(A4,30,16),D4:E7,2,FALSE)="","OPEN",TEXT(VLOOKUP(MID(A4,30,16),D4:E7,2,FALSE),"dd mmm yyyy"))&" "&IF(VLOOKUP(MID(A4,59,16),D4:E7,2,FALSE)="","OPEN",TEXT(VLOOKUP(MID(A4,59,16),D4:E7,2,FALSE),"dd mmm yyyy"))))
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: How to CONCATENATE Nested IF formula without premature stopping

    In B10. Note the changes
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 06-04-2018 at 06:02 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  3. #3
    Registered User
    Join Date
    05-31-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: How to CONCATENATE Nested IF formula without premature stopping

    Thank you so much for the solution, it has made my day even if I don't quite understand how this worked while brackets and CONC functions all failed to!

    But, it works, so who cares now right!!!


  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: How to CONCATENATE Nested IF formula without premature stopping

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    05-31-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    Office Pro Plus 2013
    Posts
    5

    Re: How to CONCATENATE Nested IF formula without premature stopping

    Sorry, didn't realise!! Have done now.

+ 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. Resume nested if and concatenate formula
    By Judith_Chao in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-19-2017, 04:14 AM
  2. Resumen concatenate formulas with nested IF
    By Judith_Chao in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2017, 02:08 AM
  3. [SOLVED] Double For Loop - Premature End Sub
    By zechy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2016, 09:15 AM
  4. [SOLVED] Nested concatenate
    By HerryMarkowitz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-02-2014, 10:15 AM
  5. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  6. [SOLVED] Concatenate & Nested if statements??
    By TotallyLost in forum Excel General
    Replies: 11
    Last Post: 04-17-2012, 11:40 AM
  7. Premature Return From A Called Sub
    By Chuckles123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2005, 01:14 PM

Tags for this Thread

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