+ Reply to Thread
Results 1 to 6 of 6

Concatenate based on cell value

  1. #1
    Registered User
    Join Date
    12-10-2003
    Posts
    39

    Concatenate based on cell value

    Using Excel 2007.
    Can I use IF along with CONCATENATE.

    =if(h26<.0099(concatenate(ak26,AK27))if(h26>.010(concatenate(ak26,aQ26,ak27))

    Can't seem to get the proper syntax.
    Last edited by Russell719; 04-29-2009 at 10:19 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Concatenate based on cell value

    =if(h26<0.01,concatenate(ak26,ak27);concatenate(ak26,aq26,ak27))

    In your case:

    What if exactly 0,01? (this will return you second choice)
    What if you don't have number there? (this will return you error... if you have number always, no problem)
    Last edited by zbor; 04-29-2009 at 10:12 AM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Concatenate based on cell value

    zbor,

    you are mixing comma separators and semi-colon separators...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    12-10-2003
    Posts
    39

    Re: Concatenate based on cell value

    Tried the following more detailed but still getting the error


    =if(h26<.01,concatenate(AK26,au26,AL26,AM26,AN26,AO26,AP26,AQ26,AR26,AS26,AT26);concatenate(AK26,AL26,AM26,AN26,AO26,AP26,AQ26,AR26,AS26,AT26))

  5. #5
    Registered User
    Join Date
    12-10-2003
    Posts
    39

    Re: Concatenate based on cell value

    got it - just replaced the semi colon with a comma

    thanks zbor and NBVC

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: Concatenate based on cell value

    Quote Originally Posted by NBVC View Post
    zbor,

    you are mixing comma separators and semi-colon separators...

    Yes, I use ; but I try to put all , so he can use it.. I missed some up

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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