+ Reply to Thread
Results 1 to 6 of 6

Formula to insert text in new column if preceding more than one of the preceding have val

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    36

    Formula to insert text in new column if preceding more than one of the preceding have val

    I need a formula that will return the text "CP" in a new column if one or more of the preceding columns have any value in them at all.

    I have attached a sample workbook, sheet 1 being the info i have and sheet 2 being what it needs to look like.

    So basically, if the part number in column 1 is in any of the boxes it has a number stating how many times it appears in that box, i need the formula to check if the part number appears in more than one box and then place in the last column "CP" (common part). this is for massive amounts of rows of data so we need to be able to quickly scroll through and see what parts are common across boxes.
    if a part number only appears in one box then there wont be "CP" as its not part of any other box.
    the amount it appears in each box doesn't matter at all, just need to know that it appears in multiple boxes

    really hope that makes sense.... haha

    Example Sheet.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Formula to insert text in new column if preceding more than one of the preceding have

    Hi,

    Place this formula in E2 and drag it down as far as is necessary:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps

  3. #3
    Registered User
    Join Date
    09-04-2013
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Formula to insert text in new column if preceding more than one of the preceding have

    Hi,
    It makes a lot of sense. All you need to do is a counta on the last column and if array in the next column with "CP" as the output. Hope this helps. Check the attachment
    Attached Files Attached Files
    Last edited by suryasudhindra; 09-04-2013 at 10:57 PM. Reason: Forgot attachment

  4. #4
    Registered User
    Join Date
    08-21-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Formula to insert text in new column if preceding more than one of the preceding have

    Perfect! ajryan your formula worked i'm a bit of a formula noob haha

  5. #5
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Formula to insert text in new column if preceding more than one of the preceding have

    No worries! Happy to help, that's what this forum is here for

    Please don't forget to mark this thread as solved and please click on the * next to my post to say thanks

  6. #6
    Registered User
    Join Date
    08-21-2013
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    36

    Re: Formula to insert text in new column if preceding more than one of the preceding have

    already did

+ 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. Use LEFT formula to extract text preceding ONE OF TWO possible characters
    By potejam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-22-2013, 08:05 PM
  2. Deleting spaces preceding text in copied in data
    By cloudwalking in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2013, 09:08 AM
  3. [SOLVED] Prevent Excel from removing preceding zeros when importing text
    By NathanC in forum Excel General
    Replies: 7
    Last Post: 09-11-2012, 04:00 PM
  4. Replies: 7
    Last Post: 07-02-2012, 07:23 PM
  5. How do I insert preceding zeroes?
    By Wrkoutguy08 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-05-2008, 02:05 PM

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