+ Reply to Thread
Results 1 to 8 of 8

Nested IF and nested Concatenation formula

  1. #1
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    304

    Nested IF and nested Concatenation formula

    Hello

    How do I say the following so that there is spaces between AA7 &, J7 and AA7 and J8 and AA7 and J9 please?

    =IF(J7="",R7,AA7& J7),IF(J7="",R8,AA7& J8),IF(J7="",R9,AA7& J9)

    The above creates one continuous string of characters. For the first part - IF(J7="",R7,AA7& J7) - only.

  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,426

    Re: Nested IF and nested Concatenation formula

    I think you want to do this:

    =IF(J7="",R7&AA7&" "&J7&" "&R8&AA7&" "&J8&" "&R9&AA7&" "&J9,"")

    If not, then tell us what you want to achieve in more detail.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    304

    Re: Nested IF and nested Concatenation formula

    Thanks for the effort Pete - your suggestion does not work.
    Attached is an example WorkBook which may explain better.
    There may be another formula you could recommend please..
    Attached Files Attached Files

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

    Re: Nested IF and nested Concatenation formula

    The formula in K14 should be this:

    =IF(C7="",G7,K7&" "&C7)

    i.e. you add a space between the K7 and C7. Is that what you mean?

    Hope this helps.

    Pete

  5. #5
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    304

    Re: Nested IF and nested Concatenation formula

    Great easy solution thank you Pete.
    Now I have just realised when I clear the drop down in cell C7, I get L0 in cell K14 - which should be clear.
    ow do I clear this when no entry in C7 please?

  6. #6
    Forum Contributor
    Join Date
    04-30-2015
    Location
    The Netherlands
    MS-Off Ver
    office 365
    Posts
    195

    Re: Nested IF and nested Concatenation formula

    Change the G7 to be nothing instead of G7, As you ask the formula to put G7 (which is "L0") in there if C7 is empty

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Remember to mark as Solved and give out rep.

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

    Re: Nested IF and nested Concatenation formula

    Try this in K14:

    =IF(C7="","",K7&" "&C7)

    Hope this helps.

    Pete

  8. #8
    Forum Contributor
    Join Date
    04-22-2017
    Location
    AU
    MS-Off Ver
    Microsoft 365
    Posts
    304

    Re: Nested IF and nested Concatenation formula

    Works Great thank you Pete.

+ 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] Nested If Function Ignore False Values and Continue Evaluation + Concatenation
    By cullenju in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-18-2018, 11:52 AM
  2. Help with a nested, nested, nested formula
    By duanrd2 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-09-2017, 04:43 PM
  3. nested loop with concatenation with many columns
    By jcpreta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-26-2015, 09:31 PM
  4. [SOLVED] Nested Sumif's or how to sum data based on nested criteria
    By dlietz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-07-2014, 11:36 AM
  5. How to reduces Nested IF code(144 Nested IF) to achive same functionality
    By jobseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 09:45 AM
  6. [SOLVED] Concatenation with nested IF
    By Michael D in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2013, 10:07 AM
  7. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM

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