+ Reply to Thread
Results 1 to 3 of 3

Using the CONCATENATE function nested in an IF function

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Jackson, MI
    MS-Off Ver
    2010
    Posts
    5

    Using the CONCATENATE function nested in an IF function

    Hello All, first post.

    Is it possible to use an IF formula and based on the result add an additional letter to a cell?


    I want to do something like (assume this formula is in cell A10):

    =IF(A1>0,CONCATENATE("E"),IF B1>0,CONCATENATE("K"), ""))

    So that if A1 and B1 are greater than zero, then A10 displays "E,K" and if only one or the other is greater than zero, only that letter shows up in cell A10.

    Help?
    Brian

    In the attached PNG, F10 will display the letters based on weather I10:Q10 have a number in the cell
    Attached Images Attached Images
    Last edited by rottweiler_lvr; 02-07-2013 at 07:17 PM. Reason: Added PNG

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Using the CONCATENATE function nested in an IF function

    You could try a formula like this:

    =SUBSTITUTE(IF(I10>0,",E","")&IF(J10>0,",K","")&IF(K10>0,",L",""),",","",1)

    repeat the red bold part for all additional cells up to Q10
    Audere est facere

  3. #3
    Registered User
    Join Date
    02-07-2013
    Location
    Jackson, MI
    MS-Off Ver
    2010
    Posts
    5

    Re: Using the CONCATENATE function nested in an IF function

    You did it! I cannot even begin to thank you enough!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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