+ Reply to Thread
Results 1 to 6 of 6

If Statement and Concatenate

  1. #1
    Jack
    Guest

    If Statement and Concatenate

    Hello. I have worksheet in which I have data in the A column, data in the B
    column, and (sometimes) in the C column. I'm having trouble with the correct
    formula. I want to put in the D column something that states If "C1" is
    blank then enter A1. And If "C1" is not blank, then concatenate A1 and B1.

    I hope that makes sense and thank you in advance.



  2. #2
    Bob Phillips
    Guest

    Re: If Statement and Concatenate

    =IF(C1=",A1,A1&B1)

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Jack" <[email protected]> wrote in message
    news:[email protected]...
    > Hello. I have worksheet in which I have data in the A column, data in the

    B
    > column, and (sometimes) in the C column. I'm having trouble with the

    correct
    > formula. I want to put in the D column something that states If "C1" is
    > blank then enter A1. And If "C1" is not blank, then concatenate A1 and

    B1.
    >
    > I hope that makes sense and thank you in advance.
    >
    >




  3. #3
    Chip Pearson
    Guest

    Re: If Statement and Concatenate

    Try a formula like

    =IF(C1="",A1,A1&B1)


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com



    "Jack" <[email protected]> wrote in message
    news:[email protected]...
    > Hello. I have worksheet in which I have data in the A column,
    > data in the B
    > column, and (sometimes) in the C column. I'm having trouble
    > with the correct
    > formula. I want to put in the D column something that states
    > If "C1" is
    > blank then enter A1. And If "C1" is not blank, then
    > concatenate A1 and B1.
    >
    > I hope that makes sense and thank you in advance.
    >
    >




  4. #4
    Jack
    Guest

    Re: If Statement and Concatenate

    Thank you everyone. you were very helpful.

    "Chip Pearson" wrote:

    > Try a formula like
    >
    > =IF(C1="",A1,A1&B1)
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    >
    > "Jack" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello. I have worksheet in which I have data in the A column,
    > > data in the B
    > > column, and (sometimes) in the C column. I'm having trouble
    > > with the correct
    > > formula. I want to put in the D column something that states
    > > If "C1" is
    > > blank then enter A1. And If "C1" is not blank, then
    > > concatenate A1 and B1.
    > >
    > > I hope that makes sense and thank you in advance.
    > >
    > >

    >
    >
    >


  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    Shelby County, Alabama
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: If Statement and Concatenate

    COOK 1 COOK 2 OPEN/CLOSE
    MELISSA JULIA

    I want Open/Close to show Melissa & Julia.
    Cook 1 will always be filled.
    Cook 2 may be blank.
    I know that I need to use concatenate: =CONCATENATE(M8," ",N8).
    My IF is Cook 2 is not blank to add space&space.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: If Statement and Concatenate

    Ajphelps,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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