Book1 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | |||
1 | Number | Name | Date | Amt | Paid Dt | Name | Amt | Date | |||
2 | 1 | Rajbeer | 10/12/2022 | 3000 | Pending | Rajbeer | 1500 | 12/11/2022 | |||
3 | 2 | Suraj | 11/12/2022 | 5000 | 12/15/2022 | Suraj | 3000 | 12/12/2022 | |||
4 | 3 | Nancy | 12/12/2022 | 2000 | 12/14/2022 | rajbeer | 1000 | 12/14/2022 | |||
5 | nancy | 1000 | 12/13/2022 | ||||||||
6 | nancy | 1000 | 12/14/2022 | ||||||||
7 | Suraj | 2000 | 12/15/2022 | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
E2:E4 | E2 | =IF(SUMIFS($H$2:$H$7,$G$2:$G$7,B2)=D2,MAXIFS($I$2:$I$7,$G$2:$G$7,B2),"Pending") |
PLEASE use XL2BB when posting data!
Book1
A B C D E F G H I 1 Number Name Date Amt Paid Dt Name Amt Date 2 1 Rajbeer 10/12/2022 3000 Pending Rajbeer 1500 12/11/2022 3 2 Suraj 11/12/2022 5000 12/15/2022 Suraj 3000 12/12/2022 4 3 Nancy 12/12/2022 2000 12/14/2022 rajbeer 1000 12/14/2022 5 nancy 1000 12/13/2022 6 nancy 1000 12/14/2022 7 Suraj 2000 12/15/2022 Sheet1[/RANGE
Cell Formulas Range Formula E2:E4 E2 =IF(SUMIFS($H$2:$H$7,$G$2:$G$7,B2)=D2,MAXIFS($I$2:$I$7,$G$2:$G$7,B2),"Pending")
Cell Formulas | ||
---|---|---|
Range | Formula |
I thought it does. Columns G-I are the payments showing multiple payments. The formula sums all of the payments (H) for the name in Column B and if it equals the amount in Column D returns the latest payment date (H), otherwise it returns Pending.Hello sir,
I appreciate your help but could you please let me know how can we do the same if there are multiple invoices and payments of the same customer
Cell Formulas Range Formula
Could you give us some dummy, but representative, sample data where that situation exists with say 2 or 3 invoices per customer and multiple payments and manually fill in the desired results.could you please let me know how can we do the same if there are multiple invoices and payments of the same customer
ICODE]
Number Name Date Amt PaidDt Name Amt Date 1 Rajbeer 10/12/2022 3000 12/12/2022 Rajbeer 1500 12/11/2022 2 Rajbeer 11/12/2022 5000 12/15/2022 Rajbeer 3000 12/12/2022 3 Rajbeer 12/12/2022 2000 12/15/2022 Rajbeer 1000 12/14/2022 4 Rajbeer 13/12/2022 4000 12/15/2022 Rajbeer 1000 12/13/2022 5 Rajbeer 14/12/2022 7000 12/16/2022 Rajbeer 1000 12/14/2022 Rajbeer 7500 12/15/2022 Rajbeer 6000 12/16/2022
PLEASE use XL2BB when posting data!
Book1
A B C D E F G H I 1 Number Name Date Amt Paid Dt Name Amt Date 2 1 Rajbeer 10/12/2022 3000 Pending Rajbeer 1500 12/11/2022 3 2 Suraj 11/12/2022 5000 12/15/2022 Suraj 3000 12/12/2022 4 3 Nancy 12/12/2022 2000 12/14/2022 rajbeer 1000 12/14/2022 5 nancy 1000 12/13/2022 6 nancy 1000 12/14/2022 7 Suraj 2000 12/15/2022 Sheet1[/RANGE
Cell Formulas Range Formula E2:E4 E2 =IF(SUMIFS($H$2:$H$7,$G$2:$G$7,B2)=D2,MAXIFS($I$2:$I$7,$G$2:$G$7,B2),"Pending")
Cell Formulas | ||
---|---|---|
Range | Formula |
Could you give us some dummy, but representative, sample data where that situation exists with say 2 or 3 invoices per customer and multiple payments and manually fill in the desired results.
Please post that with XL2BB so that we can easily copy to our worksheets to test.
Not as easy to copy or to see what ranges the values are in as with XL2BB. Is there a problem using that?Hello sir,
I have attached the same below.
Sorry i am unable to use the minisheet in excelNot as easy to copy or to see what ranges the values are in as with XL2BB. Is there a problem using that?
Also, with only one name in column B and only the same name in column H, I doubt that is representative of your real data. If the names are all the same like that please advise, otherwise some more representative (varied) data would be better.
Is that a workplace restriction or did you just run into a problem somewhere?Sorry i am unable to use the minisheet in excel
Which is why we need some better representative sample data and expected results.Also the rajbeer is not my only customer i have different customer invoices with different names
But the last one it had only one customer in each table and the first one did not have examples of multiple invoices for a customer.i have pasted the dummy data set
Plss help on the sameIs that a workplace restriction or did you just run into a problem somewhere?
Which is why we need some better representative sample data and expected results.
But the last one it had only one customer in each table and the first one did not have examples of multiple invoices for a customer.
If you cannot use XL2BB then just copy/paste some smallish but representative sample data directly into your post (with no tags).
Book2.xlsx | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | |||
1 | Invoice Details | Payment Details | |||||||||||||
2 | Location | Invoice Date | Invoice Amount | Invoice No. | Names | Clearence date | Outstanding | Fos | Banking | Date | Bank | ||||
3 | AMBEDKARNAGAR | 05.12.2022 | 2591 | 39453074 | RAJAN PAL | 06-Dec | 0 | CHANDAN | 3300 | 08-Dec | PUNB | ||||
4 | AMBEDKARNAGAR | 06.12.2022 | 5432 | 39468693 | RAJAN PAL | 06-Dec | 0 | CHANDAN | 5950 | 11-Dec | PUNB | ||||
5 | AMBEDKARNAGAR | 06.12.2022 | 4806 | 39460801 | RAJAN PAL | 10-Dec | 0 | CHANDAN | 6000 | 12-Dec | PUNB | ||||
6 | AMBEDKARNAGAR | 07.12.2022 | 2550 | 39503179 | RAJAN PAL | 10-Dec | 0 | CHANDAN | 3900 | 13-Dec | PUNB | ||||
7 | AMBEDKARNAGAR | 08.12.2022 | 3300 | 39542391 | CHANDAN | 08-Dec | 0 | CHANDAN | 8000 | 14-Dec | PUNB | ||||
8 | AMBEDKARNAGAR | 09.12.2022 | 3444 | 39566311 | CHANDAN | 11-Dec | 0 | RAJAN PAL | 12100 | 06-Dec | PUNB | ||||
9 | AMBEDKARNAGAR | 09.12.2022 | 2505 | 39566584 | CHANDAN | 11-Dec | 0 | RAJAN PAL | 6082 | 10-Dec | PUNB | ||||
10 | AMBEDKARNAGAR | 09.12.2022 | 2751 | 39574859 | RAJAN PAL | 10-Dec | 0 | RAJAN PAL | 11421 | 12-Dec | PUNB | ||||
11 | AMBEDKARNAGAR | 12.12.2022 | 3411 | 39608264 | CHANDAN | 12-Dec | 0 | RAJAN PAL | 3711 | 13-Dec | PUNB | ||||
12 | AMBEDKARNAGAR | 12.12.2022 | 4805 | 39608111 | CHANDAN | 13-Dec | 0 | ||||||||
13 | AMBEDKARNAGAR | 12.12.2022 | 2700 | 39625463 | CHANDAN | 14-Dec | 0 | ||||||||
14 | AMBEDKARNAGAR | 12.12.2022 | 3600 | 39611283 | CHANDAN | 14-Dec | 0 | ||||||||
15 | AMBEDKARNAGAR | 12.12.2022 | 4225 | 39603022 | RAJAN PAL | 12-Dec | 0 | ||||||||
16 | AMBEDKARNAGAR | 12.12.2022 | 2902 | 39603295 | RAJAN PAL | 12-Dec | 0 | ||||||||
17 | AMBEDKARNAGAR | 12.12.2022 | 4294 | 39603153 | RAJAN PAL | 12-Dec | 0 | ||||||||
18 | AMBEDKARNAGAR | 13.12.2022 | 3900 | 39685842 | CHANDAN | 14-Dec | 515 | ||||||||
19 | AMBEDKARNAGAR | 13.12.2022 | 3711 | 39671011 | RAJAN PAL | 13-Dec | -52 | ||||||||
20 | |||||||||||||||
21 | |||||||||||||||
22 | |||||||||||||||
Sheet1 |