+ Reply to Thread
Results 1 to 2 of 2

Check if any Other Cells in Column Start with Same Text and End with Different...

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    Tetbury, England
    MS-Off Ver
    Microsoft 365 MSO
    Posts
    73

    Exclamation Check if any Other Cells in Column Start with Same Text and End with Different...

    Hi All,

    I have a problem which I am hoping you can help me with. I manage stock of products at the print company where I work. They are broken into 3 categories:
    • Items We Produce
    • Items Bought From Historic Supplier 1
    • Items Bought From Historic Supplier 2

    This is as we have taken on new contracts the incumbent supplier had stock left which we bought, but had to honour whatever pricing was in place until that stock ran out.

    I get a daily Excel report from our system which in column A lists all the codes and in Column B the Stock we have. There is then a minimum level on the Master Code (the one we produce) and a re-order quantity. My issue is that the report is flagging that something has gone below it's minimum when actually there is some stock under one of the previous supplier codes that we can use and so it actually isn't?

    I am trying to write a formula in Cell C2 which will check all of column A for cells which start with the text in A2 but that have any other text following that, and if that situation occurs to add up the stock in column B for all those items. Hope that makes sense. I have included an example spreadsheet so you can see what I mean.

    Any questions let me know! Hope you can help!




    Chris

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,152

    Re: Check if any Other Cells in Column Start with Same Text and End with Different...

    Try

    =SUMPRODUCT(($B$3:$B$376),--(IFERROR((ISNUMBER(SEARCH($A$2,$A$3:$A$376))),0)))

    Enter with Ctrl+Shift+Enter

    with Error

    =IFERROR(SUMPRODUCT(($B$3:$B$376),--(IFERROR((ISNUMBER(SEARCH($A$2,$A$3:$A$376))),0))),0)
    Last edited by JohnTopley; 11-11-2016 at 04:55 AM.

+ 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. [SOLVED] Check column to see if any cells have text/numbers/etc.
    By YOO629 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-06-2015, 11:29 AM
  2. Check cell contains if contains text check another column.
    By thequiff in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2013, 07:29 AM
  3. Adding text to the start and end of a cells text in another cell
    By kubelwagon in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-29-2013, 06:36 PM
  4. Text To Column Based on Start and End Position
    By noeyez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2013, 07:06 PM
  5. Replies: 2
    Last Post: 09-10-2012, 03:02 AM
  6. Check text in cells and delete/add column accordingly
    By help pls in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-01-2009, 05:45 AM
  7. [SOLVED] [SOLVED] check if the text string start with a specific character
    By September21 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 09-22-2005, 11:05 AM

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