+ Reply to Thread
Results 1 to 6 of 6

Write formula to compare planned amounts by vendor in one sheet to approved amounts by ven

  1. #1
    Registered User
    Join Date
    09-30-2023
    Location
    Pleasantville, USA
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Write formula to compare planned amounts by vendor in one sheet to approved amounts by ven

    Full post title: Write formula to compare planned amounts by vendor in one sheet to approved amounts by vendor in another tab based on project ID


    I have an invoice reconciliation workbook where the first sheet (Data) is a list of the Planned Amounts by Vendor and Project ID. All of the other sheets in the workbook are broken out and named by the Project ID. I'm trying to compare the Planned Amounts by Vendor on the Data sheet to the Total Approved Amounts by Vendor in the rest of the workbook, based on the Project ID to ensure that they match.

    All bolded fields in the attached workbook are headers that will not change. The positioning of the Vendors on the Project ID tabs may change based on the Partner Type (highlighted in red for easier visualization), but all Vendors will be in column A and all Total Approved Amounts will be in column B. Please note, some Vendors on the Project ID tabs have a Parent Company in parentheses on the Project ID tabs. The Vendors on the Data tab will not include the Parent Company.

    Lastly, sometimes the same vendor is listed twice on a Project ID based on the Partner Type. When this happens, it would be great if the result could say something like "Multiple Approved Amounts Found" so I know to double-check the Project ID tab to see which Approved Amount on the Data sheet aligns to the Total Planned Amount on the corresponding Project ID tab. Note, the Initiatives are included only on the Data tab of the workbook to help me distinguish this.

    Please see the workbook attached. Lett me know if you have any questions. I know this is a complicated ask.

    Workbook Sample for Formula.xlsx

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Write formula to compare planned amounts by vendor in one sheet to approved amounts by

    Why do I get the feeling this is a training assignment? You didn't even bother to include any formulas you attempted on your own.
    Alice in wonderland indeed!
    Ben Van Johnson

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Write formula to compare planned amounts by vendor in one sheet to approved amounts by

    Not sure why you posted this twice (mistake perhaps?), but I have closed the other 1 so you can continue here.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-30-2023
    Location
    Pleasantville, USA
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Write formula to compare planned amounts by vendor in one sheet to approved amounts by

    It's not a training assignment, it's real. I don't have the skills to write the formula I need on my own right now. Below is a start. It works on most of the Vendors on the Data tab. However, it doesn't work if the same Vendor is on the corresponding Project ID tab more than once. It also doesn't work if the Invoice Amount Total in column E of the Project ID tab is $0, it returns a result of $0. (The row on the Project ID tab of the Invoice Amount Total in column E is the same row as the Totals (Jan-Dec) header in column A.) I didn't include Invoice Amount Total as a header for this ask because it didn't seem relevant. I'm not sure why the formula would result in $0 if the Vendor and Project ID match.

    =INDEX(INDIRECT("'"&D2&"'!b1:b500"),XLOOKUP("*"&B2&"*",INDIRECT("'"&D2&"'!A1:A500"),ROW(INDIRECT("'"&D2&"'!b1:b500")),,2)+13,1)

  5. #5
    Registered User
    Join Date
    09-30-2023
    Location
    Pleasantville, USA
    MS-Off Ver
    Microsoft 365
    Posts
    4

    Re: Write formula to compare planned amounts by vendor in one sheet to approved amounts by

    Yes, sorry about that. I wasn't sure which one made the most sense to put this in. Thanks!

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

    Re: Write formula to compare planned amounts by vendor in one sheet to approved amounts by

    The following yields most of the values listed in column C:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note that some vendors listed on the Data sheet correspond to vendor names that have extra text on the Project ID Test sheets: i.e. vendor 4 is listed as Vendor 4 (Parent Company 1)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 2
    Last Post: 10-01-2023, 12:51 AM
  2. [SOLVED] How can I write a formula to show amounts for given months and a specific category
    By Fred Houck in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-29-2023, 11:11 AM
  3. Excell formula to write payments amounts in words
    By sunboy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-30-2020, 01:46 AM
  4. SUBTOTAL amounts paid to each vendor by name.
    By MAC851971 in forum Excel General
    Replies: 11
    Last Post: 05-05-2019, 07:40 PM
  5. Replies: 8
    Last Post: 09-28-2016, 12:01 PM
  6. Replies: 2
    Last Post: 02-23-2014, 09:56 PM
  7. Formula to take amounts from other sheet with no duplicate amounts
    By Xx7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2013, 04:34 PM

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