+ Reply to Thread
Results 1 to 6 of 6

Excel formula to capture invoice number

  1. #1
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Excel formula to capture invoice number

    Hi

    I am kindly asking for a formula to automatically capture invoice numbers from Sales Data to VAT Sheet. Please see the attached excel sample.

    Thank you.

    Regards,

    Sunboy
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel formula to capture invoice number

    Based on your example
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by ChemistB; 08-18-2020 at 01:05 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Excel formula to capture invoice number

    Please try at E2

    =IFERROR(AGGREGATE(15,6,'SALES DATA'!$B$2:B9/(FREQUENCY('SALES DATA'!$B$2:$B$9,'SALES DATA'!$B$2:$B$9)>0),ROWS(E$2:E2)),"")

    and change ISBLANK(E2) to E2=""


    Or use Pivot table
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to capture invoice number

    Thank you for helping me. The formula is working well. What negative effect ISBLANK have on the above formula.

    Thank you again.

    Regards,

    Sunboy

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel formula to capture invoice number

    ISBLANK only returns TRUE for truly blank cells. If you use a formula to enter "", then it's not blank. "" is called a null set. On the other hand, if you use COUNTBLANK(A2), it counts "" as a blank. I don't know if COUNTBLANK is available in Excel 2010

  6. #6
    Forum Contributor
    Join Date
    07-06-2020
    Location
    zimbabwe
    MS-Off Ver
    Excel 365
    Posts
    470

    Re: Excel formula to capture invoice number

    Thank you for explaining ISBLANK, now I know where to use it or not.

+ 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. Generate Invoice Number + Index Match data intry to invoice
    By Trish123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2020, 12:37 PM
  2. Choose Invoice Number from a userform combobox and copy data to invoice output
    By djemy1975* in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2016, 06:02 AM
  3. Print Invoice by pulling info from database by selecting Invoice Number
    By Swapnil Panchal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 11:21 AM
  4. Saving Invoice where next time I open file the Invoice Number increases by 1
    By domgee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-22-2013, 03:03 PM
  5. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  6. Replies: 5
    Last Post: 01-02-2011, 11:06 PM
  7. [SOLVED] How do you add 1 to an invoice number in Excel. Formula for this?
    By Susan in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-01-2005, 11:05 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