+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP or INDEX to show all items added last month that have not yet been paid for

  1. #1
    Registered User
    Join Date
    06-26-2015
    Location
    Brazil
    MS-Off Ver
    O365 Win
    Posts
    63

    VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Hey guys,

    I made a workbook to save data of all packages we are selling to a restaurant.

    Every beginning of the month we charge for everything that was not paid for in last month.

    Sheet 1 is where we add the product and the amount of packages to be delivered that day, it prints it out on PDF, we manually print it and send it with the packages. All data is then sent to sheet 'Dados' (data), where it's the database and includes:

    A Date
    B Invoice nr
    C Package type 1
    D Package type 2
    E Package Type 3
    F Package type 4
    G Paid?


    I also have another sheet called 'juntar notas' which means join invoices.

    This is where I want to have it always showing values on the 'Dados' sheet from last month and that have not yet been paid for.

    Right now I have set it to show a dropdown list where I click on the invoice nr and it shows the amount to be paid for, but I am afraid that it might get very crowded in the future.
    Is there a way to make it show all the unpaid invoices from last month?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Hey, I'm guessing that all you want is formulas on the worksheet labeled "juntar notas". If so, then remove the data validation list from range 'juntar nota'!A4:A20. Enter this formula in A4 as an array [confirm with Ctrl+Shift+Enter at the same time]
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag down to A20, and you can protect the cells so that the formula is not tampered with or deleted. OHH, and ensure that you use the same custom text format you have in Dados!$B$2 so that it shows exactly how it appears in the Dados worksheet.

    THEN, in C4:C20 enter [confirm with just Enter]:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I suggest you change the formula in C2 to this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So that it always equal to the same day of the previous month.
    Last edited by ron2k_1; 02-07-2018 at 02:40 PM.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Registered User
    Join Date
    06-26-2015
    Location
    Brazil
    MS-Off Ver
    O365 Win
    Posts
    63

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Thanks Ron, it partially worked. It will show all the data from past month, but also from this current month.

    Also, if there was something already paid, I put on the sheet 'Dados' as pago (paid), this should also not show up - is there a way to do this double verification?



    Quote Originally Posted by ron2k_1 View Post
    I suggest you change the formula in C2 to this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    So that it always equal to the same day of the previous month.

    I did as per your suggestion, much better

  4. #4
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Quote Originally Posted by danwoltrs View Post
    Thanks Ron, it partially worked. It will show all the data from past month, but also from this current month.

    Also, if there was something already paid, I put on the sheet 'Dados' as pago (paid), this should also not show up - is there a way to do this double verification?






    I did as per your suggestion, much better
    The formula is based on the dates on A2 and C2. It is showing you current month because A2 is February 7. If you don't want current month then change the date on A2 to be January 31. Would you still like to keep A2 with the formula =Today(), in this case February 7 and have the results only show unpaid invoices from January 1 thru January 31st, that is possible. Right now it will show everything from January 7 thru February 7.

    What will indicate that an invoice has been paid in the worksheet "Dados"? The word "Pago" on Column G?

    All of the above can be easily accommodated with a slight change to the formula.
    Last edited by ron2k_1; 02-07-2018 at 04:31 PM.

  5. #5
    Registered User
    Join Date
    06-26-2015
    Location
    Brazil
    MS-Off Ver
    O365 Win
    Posts
    63

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Quote Originally Posted by ron2k_1 View Post
    The formula is based on the dates on A2 and C2. It is showing you current month because A2 is February 7. If you don't want current month then change the date on A2 to be January 31. Would you still like to keep A2 with the formula =Today(), in this case February 7 and have the results only show unpaid invoices from January 1 thru January 31st, that is possible. Right now it will show everything from January 7 thru February 7.
    understood, but since I also need a today's date because this will be printed out, I made a "invisible" (white text) date with first day of the month on cell D2 [ =EOMONTH(A2,-1)+1 ] and changed on the formula, it worked!

    Quote Originally Posted by ron2k_1 View Post
    What will indicate that an invoice has been paid in the worksheet "Dados"? The word "Pago" on Column G?

    Yes, any word different than "" empty could work, but I guess I'll just leave a validity dropdown with 'Pago'
    Last edited by danwoltrs; 02-08-2018 at 07:49 AM.

  6. #6
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Quote Originally Posted by danwoltrs View Post
    understood, but since I also need a today's date because this will be printed out, I made a "invisible" (white text) date with first day of the month on cell D2 [ =EOMONTH(A2,-1)+1 ] and changed on the formula, it worked!




    Yes, any word different than "" empty could work, but I guess I'll just leave a validity dropdown with 'Pago'
    Sorry, I got busy yesterday and forgot to get back to you. So, just to be sure. If today's date is February 9th, which invoice dates would you like to see on the list? You don't need a formula in D2, I can place the validation date in the formula if want it hardcoded. The options are:
    January 1-31st
    January 1-February 9th
    January 9-31st
    January 9 - February 9 or anything in between

    Secondly, I'll assume you'll have a validation list dropdown option called "Pago" on the Dados worksheet column G.

    PS: Your English is excellent by way. I see you're from Brazil.
    Last edited by ron2k_1; 02-09-2018 at 03:04 PM. Reason: additional clarity

  7. #7
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    I had a chance during my lunch break and worked on the attachment. Let me know if that is what you were hoping for. Right now it will filter invoices dated in the previous month to the date in A2 from the 1st of the month through to the last day of that month. So, in today's case, A2=February 9, 2018; the sheet will filter out all invoices not marked "Pago" in Dados from January 1st to January 31, 2018 (both dates inclusive).

    If you want invoices in the previous month not to start from the 1st but from the 9th (today's day), then change this piece on the formula and remember to confirm with Ctrl Shift Enter and drag down:
    Change this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    To this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you notice, the formula does not use the date in C2 [or D2], so you can delete it. It is only using the date in A2.

    Still let me know if you require anything else. If not, then don't forget to mark your question SOLVED.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-26-2015
    Location
    Brazil
    MS-Off Ver
    O365 Win
    Posts
    63

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Hi Ron, I also had a lot of work yesterday, and today I drove about 9 hours South to get away from Carnaval madness hahaha!!

    Quote Originally Posted by ron2k_1 View Post
    Sorry, I got busy yesterday and forgot to get back to you. So, just to be sure. If today's date is February 9th, which invoice dates would you like to see on the list? You don't need a formula in D2, I can place the validation date in the formula if want it hardcoded. The options are:
    January 1-31st
    January 1-February 9th
    January 9-31st
    January 9 - February 9 or anything in between

    Secondly, I'll assume you'll have a validation list dropdown option called "Pago" on the Dados worksheet column G.

    PS: Your English is excellent by way. I see you're from Brazil.
    Yes, I have added a validation dropdown on 'Pago'.
    And thanks for the compliment on the english!! Appreciate it! My job requires me to speak english, so I write and speak it daily.

    This is second job I'm doing for the company, we are roasting small batches of coffee and selling it to my brother's restaurant, but I am not the one controlling it and I want to make sure the guy taking care of it really is taking care of it hahahaha – he doesn't speak English very well, which is why I made this in Portuguese

    Thanks for all the help man, it worked out perfectly!!

    I have a small question though, if I wanted to change date from Jan 1st current year till end of last month, where would I have to change that in the formula?

    I will go ahead and mark it as solved, thanks for all the help!

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,095

    Re: VLOOKUP or INDEX to show all items added last month that have not yet been paid for

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. index match or offset to show contacts that will be delivered next month
    By danwoltrs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2016, 10:27 AM
  2. [SOLVED] Sum amounts by month paid
    By Pickygame in forum Excel General
    Replies: 11
    Last Post: 02-17-2015, 11:32 AM
  3. [SOLVED] Count of unique contractors that were paid during the month
    By DD1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-19-2015, 10:11 PM
  4. Compare 2 Excel Worksheets & Show Items Added, Removed & Modified
    By puls8 in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 11-13-2014, 02:02 AM
  5. [SOLVED] Vlookup when a new data column is added each month
    By bkeat in forum Excel General
    Replies: 5
    Last Post: 08-20-2014, 04:43 AM
  6. Index + Match/Multi-Vlookup for Items with shared names
    By excelhelporfavor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-28-2013, 09:32 PM
  7. Replies: 1
    Last Post: 06-24-2005, 12:21 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