+ Reply to Thread
Results 1 to 8 of 8

sum if value in cell in a certain column starts with number

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    germany
    MS-Off Ver
    Office 365 Pro (Excel 2016)
    Posts
    45

    sum if value in cell in a certain column starts with number

    Hi,

    I am looking for a formula which I need to retrieve values in sheet PO List, whenever the content of a cell in column Invoice number in the source sheet ERP starts with a numeric number
    and shows in column N the respective PO number.
    Attached Excel for illustration my problem.

    To retrieve all the amounts in the source sheet which start numerically I tried to use this formula but it is not working.
    I was trying the same with a Sumifs formula to no avail either.

    SUMPRODUCT(ISNUMBER(--(LEFT(ERP!$P$1:$P$60000,1))),ERP!$N$1:$N$60000,D8,ERP!$A$1:$A$60000,N5,ERP!$E$1:$E$60000)


    Many thanks for your help in advance
    Philip
    Attached Files Attached Files
    Last edited by pvp; 09-15-2016 at 04:20 AM.

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: sum if value in cell in a certain column starts with number

    Hi Philip and welcome to the forum
    Could you please tell us which of these sheets is a "source" sheet and column? There are PO List, ERP, Rep and Supplierlist.
    The only suitable column I found is on ERP sheet col P
    In any case you may need a formula something like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This will return TRUE or FALSE
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Registered User
    Join Date
    05-23-2011
    Location
    germany
    MS-Off Ver
    Office 365 Pro (Excel 2016)
    Posts
    45

    Re: sum if value in cell in a certain column starts with number

    Hi Alkey,

    the source sheet is named "ERP" and the amount, if any, should be put into column "invoices" in sheet PO List.

    Rgds

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,706

    Re: sum if value in cell in a certain column starts with number

    Try entering the following formula which is modified from the formula in post #1:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You are still going to get all zeros in M8:M12 because apparently none of the PO numbers match invoices. If you put in a PO number that you know matches an invoice, such as 16301173, you will get a non-zero value.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    05-23-2011
    Location
    germany
    MS-Off Ver
    Office 365 Pro (Excel 2016)
    Posts
    45

    Re: sum if value in cell in a certain column starts with number

    Hi,

    I would now like to change the formula in such a way that it retrieves an amount if
    the content of a cell in column Invoice number in the source sheet ERP contains the text "close" ( I am aware that in the present excel file for the PO numbers in sheet "PO List" this criterion is never fulfilled)
    and shows in column N the respective PO number and in column document number text "P3".
    How do i need to update the formula for this purpose?

    Many thanks in advance

  6. #6
    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,423

    Re: sum if value in cell in a certain column starts with number

    Column P of "ERP" has cells containing "CLOSE PO ....." so do still need to check if Invoice Number in these cells starts with numeric?

    And "column "document number" text "P3"" should be column "document type" text "P3"?

  7. #7
    Registered User
    Join Date
    05-23-2011
    Location
    germany
    MS-Off Ver
    Office 365 Pro (Excel 2016)
    Posts
    45

    Re: sum if value in cell in a certain column starts with number

    My notations were not clear you are right.

    There is no need to check if Invoice Number in these cells starts with numeric

    And "column "document number" text "P3"" should be column "document type" text "P3"

    Many thanks

    Philip

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,706

    Re: sum if value in cell in a certain column starts with number

    Try the following formula in M8 and down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.

+ 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] How do I create an Excel macro loop that starts with a number from a cell
    By Goodoboy in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-12-2016, 12:24 PM
  2. How do I create an Excel macro loop that starts with a number from a cell
    By Goodoboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2016, 06:52 PM
  3. Replies: 4
    Last Post: 09-04-2014, 03:17 PM
  4. [SOLVED] If statement for identifying a cell that starts with a letter or number
    By Stephen R in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-25-2014, 09:46 AM
  5. Replies: 1
    Last Post: 05-17-2013, 04:56 AM
  6. [SOLVED] Creating a formula: If cell starts with number X, then enter this in column A
    By abraham.lopez in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-14-2013, 07:05 PM
  7. Replies: 19
    Last Post: 06-13-2012, 09:03 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