+ Reply to Thread
Results 1 to 7 of 7

How to Add an Additional Column to Complicated Formula

  1. #1
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    How to Add an Additional Column to Complicated Formula

    =IF(B41="","",IF(OR(D41="",E41="",H41=""),"The following are required: Source, Medium, Name",CONCATENATE("?utm_source="&D41,"&utm_medium="&E41,IF(F41="",,"&utm_term="&F41),IF(G41="",,"&utm_content="&G41),"&utm_campaign="&H41)))

    I have the following formula in one column that is used to combine multiple columns of data together. If I want to add another column of data to the end of this set, how do I do that?

    Thanks.

  2. #2
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to Add an Additional Column to Complicated Formula

    Should I post the entire excel file and remove all the sensitive data?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: How to Add an Additional Column to Complicated Formula

    If this doesnt work, then maybe a sample workbook would help...
    =IF(B41="","",IF(OR(D41="",E41="",H41=""),"The following are required: Source, Medium, Name",CONCATENATE("?utm_source="&D41,"&utm_medium="&E41,IF(F41="",,"&utm_term="&F41),IF(G41="",,"&utm_content="&G41),"&utm_campaign="&H41,YOUR_NEXT_CELL_HERE)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to Add an Additional Column to Complicated Formula

    Yes that works! How would I include a ampersand(&) before the YOUR_NEXT_CELL_HERE? I tried to just add it before, but I'm getting an error.

  5. #5
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to Add an Additional Column to Complicated Formula

    Also my tracking code at the moment has a (-) in the middle and the YOUR_NEXT_CELL_HERE, only picks up the first part of the text.

    So for example if the code is xxx-123, the YOUR_NEXT_CELL_HERE shows xxx only at the end of the equation.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: How to Add an Additional Column to Complicated Formula

    if YOUR_NEXT_CELL_HERE is a cell, you should be able to add it just like I showed. If YOUR_NEXT_CELL_HERE is actually plain text you want to add (like, not from a cell ref), then make sure you wrap the text in quotes ""

    If you are actually typing "xxx-123" into the formula, it may be seeing the -123 as just that minus 123.

    can you post a sample?

  7. #7
    Registered User
    Join Date
    01-04-2012
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to Add an Additional Column to Complicated Formula

    Okay I solved it! Here's the final equation =IF(B7="","",IF(OR(D7="",E7="",H7=""),"The following are required: Source, Medium, Name",CONCATENATE("?utm_source="&D7,"&utm_medium="&E7,IF(F7="",,"&utm_term="&F7),IF(G7="",,"&utm_content="&G7),"&utm_campaign="&H7,IF(C7="",,"&p-ads="&C7))))

    Thank you!

+ 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. Replies: 4
    Last Post: 10-31-2011, 04:33 PM
  2. Create an additional column in query/table?
    By shanew in forum Access Tables & Databases
    Replies: 2
    Last Post: 03-05-2009, 02:04 AM
  3. make db call to pull one additional column
    By chitownoz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2007, 05:28 PM
  4. additional column
    By nowfal in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2007, 05:55 AM
  5. ADDITIONAL FIGURES IN COLUMN DON'T ADD TO TOTAL IN EXCEL
    By Krysy Albutt in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-21-2005, 07:06 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