+ Reply to Thread
Results 1 to 19 of 19

Paid vs Unpaid

  1. #1
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71

    Paid vs Unpaid

    I have two excel sheets. The first lists all orders submitted. The second lists all orders paid, or pending payment. I would like a column in the first sheet that would show if that order was paid, by pulling the info from the second sheet.
    Last edited by oldchippy; 10-23-2008 at 03:41 PM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Assuming: Orders sheet column A contains orders submitted, Paid sheet column A lists orders paid/pending then in Orders sheet in an adjacent column (eg col B) use this and copy down as many orders as you have:

    =IF(ISNUMBER(MATCH(Orders!A2,Paid!A:A,0)),"Paid","Outstanding")

    You can change "Paid" and "Outstanding" to suit.

    Richard

  3. #3
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    The paid column in sheet 2 list the date paid, or pending. I would like the columne in sheet 1 to reflect this information.

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    You need some unique identifying reference common between the two sheets (eg an order number) - do you have this in the Paid sheet? If so, which column, and which column is the date you want to return in?

  5. #5
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    The order number is in column J on sheet 1 and column B on sheet 2. The paid status is in column J on sheet 2 and I want it to matchup and show in column R on sheet 1.

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Ok so in column R on Sheet1:

    =IF(ISNA(MATCH(Sheet1!J2,Sheet2!B:B,0)),"Not Paid",INDEX(Sheet2!J:J,MATCH(Sheet1!J2,Sheet2!B:B,0)))

    copied down.

  7. #7
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    It doesn't work. It came back as Not Paid, but it was paid. If it is paid, it looks like the"PD WE 06-08-08". Also I forgot that sheet 2 can have multiple entries for each order. An example would be, for payroll 8-8 & 8-15, the order is listed as pending, then for payroll 8-22, it is listed as"PD WE 08-22-08". I only need the most recent entry listed on sheet 1.

  8. #8
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Can you attach a small sample of a workbook with these two sheets and some sample data (remove anything confidential). It will make providing a working solution much easier. Thanks.

  9. #9
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Payroll Sample.xlsx

    I had to delete over 12,000 lines of data to be able to upload, but I've included the customers begining with "A" for a sample. I've also deleted all addresses and phone numbers, so the column positions have cahnged. In Daily Compliance Column "O", is where I want to display the most recent (if any) data from Payroll Detail Column "I".

  10. #10
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    OK Thanks for that. Looking at your data I don't immediately see how to match Daily Compliance data to the Payroll Detail data. I can see that customer names are consistent between the two, but what I was expecting (perhaps incorrectly) that there would be some unique reference common to both (eg customers might appear multiple times, but each occurrence would have a unique ID attached in some field). Am I wrong to expect this, or maybe I have simply missed the unique identifier?

    It can be done based on the customer name alone (and pull back the last reference matching that customer). To do this, ideally you should have the Payroll Detail sheet sorted by date (can be sorted by customer first, then by date). Would this be acceptable?

    Richard

  11. #11
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    On the Daily Compliance Tab, BAN # (column G), is the same as case ID (column B) on Payroll Detail. It's the result of two different departments.

  12. #12
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    OK, I have added a formula to column O of 'Daily Compliance':

    =IF(ISNA(MATCH(G2,'Payroll Detail'!$B$2:$B$377,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$377='Daily Compliance'!G2),'Payroll Detail'!$I$2:$I$377))

    I have also sorted 'Payroll Detail' sheet based on 'Bill Name' column then 'WE Update' column (both ascending - it is important that the latest date for each customer is at the bottom).

    Many of the formula do not return a match so they return a blank ("") - presumably this is because the sheet does not contain the full data.

    Please see attached.

    Richard
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Thanks it worked wonderfully!

  14. #14
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Ok, the new challenge is this. If column "O" on Daily Compliance produces a blank result, then the ACT tabs need to be checked to see if there is a match. "ACT Legacy" does not have a column with the BAN #, but the order can be matched up using the confirmation # (column F on Daily Compliance and column E on ACT Legacy). ACT No Sale can be matched using either the BAN number (column G in Daily Compliance and column H in ACT No Sale) or the confirmation number (column F in both Daily Compliance and ACT No Sale). If there is a match, the result to be displayed from ACT Legacy is column G and from ACT No Sale is column E. As with the Payroll detail tab, an oreder may be listed more than once, and I would only need the most recent info. Payroll Sample.xlsx

  15. #15
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    I've got four sheets, one lists the orders, one lists the paid or payable orders, and two list unpayable orders.

    I tried the following formula to check and see if the order was paid, and if not check it against two other sheets to see if it is unpayable.

    =IF(ISNA(MATCH(J2071,'Payroll Detail'!$B$2:$B$8200,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$8200=J2071),'Payroll Detail'!$J$2:$J$8200)),IF(ISNA(MATCH(F2071,'ACT Legacy'!$K$2:$K$2000,0)),"",LOOKUP(2,1/('ACT Legacy'!$K$2:$K$2000=F2071),'ACT Legacy'!$K$2:$K$2000)),IF(ISNA(MATCH(F2071,'ACT No Sale'!$K$2:$K$2000,0)),"",LOOKUP(2,1/('ACT No Sale'!$K$2:$K$2000=F2071),'ACT No Sale'!$K$2:$K$2000))

    But is returns #VALUE!

    Any suggestions?

  16. #16
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Bump No Response

  17. #17
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Ok, I'm getting closer, I no longer get the #VALUE! error, but it returns a blank value, instead of pulling the data from any of the sheets. I know I'm close, but what am I missing?

    =IF(IF(ISNA(MATCH(F1518,'Payroll Detail'!$B$2:$B$8200,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$8200=F1518),'Payroll Detail'!$J$2:$J$8200))=0,IF(ISNA(MATCH(F1518,'ACT Legacy'!$K$2:$K$2000,0)),"",LOOKUP(2,1/('ACT Legacy'!$K$2:$K$2000=F1518),'ACT Legacy'!$Q$2:$Q$2000)),IF(ISNA(MATCH(F1518,'Payroll Detail'!$B$2:$B$8200,0)),IF(ISNA(MATCH(F1518,'ACT No Sale'!$K$2:$K$200,0)),"",LOOKUP(2,1/('ACT No Sale'!$K$2:$K$200=F1518),'ACT No Sale'!$G$2:$G$200)),LOOKUP(2,1/('Payroll Detail'!$B$2:$B$8200=F1518),'Payroll Detail'!$J$2:$J$8200)))

  18. #18
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    This gets a result from Payroll Detail, but I'm still not getting anything from ACT Legacy or ACT No Sale:

    =IF(IF(ISNA(MATCH(I1530,'Payroll Detail'!$B$2:$B$8200,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$8200=I1530),'Payroll Detail'!$J$2:$J$8200))=0,IF(IF(ISNA(MATCH(E1530,'ACT Legacy'!$K$2:$K$2000,0)),"",LOOKUP(2,1/('ACT Legacy'!$K$2:$K$2000=E1530),'ACT Legacy'!$Q$2:$Q$2000))=0,IF(ISNA(MATCH(E1530,'ACT No Sale'!$K$2:$K$200,0)),"",LOOKUP(2,1/('ACT No Sale'!$K$2:$K$200=E1530),'ACT No Sale'!$G$2:$G$200)),IF(ISNA(MATCH(E1530,'ACT Legacy'!$K$2:$K$2000,0)),"",LOOKUP(2,1/('ACT Legacy'!$K$2:$K$2000=E1530),'ACT Legacy'!$Q$2:$Q$2000))),IF(ISNA(MATCH(I1530,'Payroll Detail'!$B$2:$B$8200,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$8200=I1530),'Payroll Detail'!$J$2:$J$8200)))

  19. #19
    Registered User
    Join Date
    08-22-2008
    Location
    Michigan
    Posts
    71
    Please mark this as solved.

    This is what I came up with. I ended up making a separate column for each report I wanted to check it against. Here's an example of the formula that finally worked. It's longer because I have it triple checking to bypass any potential misentered information.

    =IF(IF(ISNA(MATCH('Daily Compliance'!J3595,'Payroll Detail'!$B$2:$B$15000,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$15000='Daily Compliance'!J3595),'Payroll Detail'!$J$2:$J$15000))="",IF(IF(ISNA(MATCH('Daily Compliance'!F3595,'Payroll Detail'!$R$2:$R$15000,0)),"",LOOKUP(18,1/('Payroll Detail'!$R$2:$R$15000='Daily Compliance'!F3595),'Payroll Detail'!$J$2:$J$15000))="",IF(ISNA(MATCH('Daily Compliance'!E3595,'Payroll Detail'!$V$2:$V$15000,0)),"",LOOKUP(22,1/('Payroll Detail'!$V$2:$V$15000='Daily Compliance'!E3595),'Payroll Detail'!$J$2:$J$15000)),IF(ISNA(MATCH('Daily Compliance'!F3595,'Payroll Detail'!$R$2:$R$15000,0)),"",LOOKUP(18,1/('Payroll Detail'!$R$2:$R$15000='Daily Compliance'!F3595),'Payroll Detail'!$J$2:$J$15000))),IF(ISNA(MATCH('Daily Compliance'!J3595,'Payroll Detail'!$B$2:$B$15000,0)),"",LOOKUP(2,1/('Payroll Detail'!$B$2:$B$15000='Daily Compliance'!J3595),'Payroll Detail'!$J$2:$J$15000)))

+ 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. Commission Calculation Help
    By Maxsys in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-09-2008, 09:38 AM
  2. Sum under two conditions
    By gilbert in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-14-2008, 02:26 AM
  3. Accrual Cap Paid Time Off Function Help Needed
    By joecarioca in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-30-2007, 10:34 AM
  4. use an =IF or conditional formula or both?
    By moxy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2007, 03:14 AM
  5. Timesheets for hourly paid staff
    By jennii in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 05-05-2007, 03:54 PM

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