+ Reply to Thread
Results 1 to 6 of 6

Auto-populate receipt numbers from a separate worksheet

  1. #1
    Registered User
    Join Date
    01-22-2010
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    3

    Auto-populate receipt numbers from a separate worksheet

    I'm sure this is farily easy, I just haven't found the right way to phrase it in order to get and answer.

    I have an excel 2003 file with two sheets in it. The first sheet is a payment receipt layout for printing. The second sheet is a log of receipt numbers and who the receipt number was assigned to. Multiple people will be accessing this file to provide receipts to individuals who come into our office to make a payment. My question. What formula can I use to auto-populate the receipt number based on the next available receipt number from the second sheet?

    Thanks in advance,
    Jen

  2. #2
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Re: Auto-populate receipt numbers from a seperate worksheet

    Upload a dummy spreadsheet with some information (fake info) of what is being worked with.
    Regards

    Rick
    Win10, Office 365

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Auto-populate receipt numbers from a separate worksheet

    It would best if you could upload a sample workbook (non-sensitive, dummy data) so we have idea of what the receipt numbers are like.

    However, perhaps this idea will help.

    Index match formula to find next item based on last receipt.
    =INDEX(Sheet2!D1:D23,MATCH(Sheet1!E2,Sheet2!D1:D23,0)+1)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    01-22-2010
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Auto-populate receipt numbers from a separate worksheet

    I've attached the test receipt.

    Thanks again!
    Attached Files Attached Files

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Auto-populate receipt numbers from a separate worksheet

    See if the attached is what you intended.
    This code . . .
    Checks to see that an entry exists for the "Received From" line, if not it prompt for an entry then exits the macro.

    If there is an entry for "Received From", this name is written to the Receipt log adjacent to the current receipt number, then the next receipt number is populated into the cell.

    Changes made to the sheet to accommodate the VBA code.
    Removed merged cells on sheet1 and sheet2. These cause problems for VBA code.
    Deleted the rectangular shape objects and shaded the cells to give the same appearance.

    Option code included to print out the receipt and to clear the form for new entries (though I did not clear code to clear entries below the Amount Received. This code is "turned off". See comments in code for how to "turn on" this option.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    01-22-2010
    Location
    Oklahoma City, Oklahoma
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Auto-populate receipt numbers from a separate worksheet

    Thank you so much! This is great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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