blenderwala

New Member
Joined
Apr 5, 2022
Messages
8
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
I got a task in which i have 2 Files

One is a Master File containing the names of the clients and the EMI amount with Payment 1 detail
And there is Another file containing Daily Collection with payment 2 Detail

In Master File there are two column

Pay 1
Pay 2(Values Coming From Another File Via VLookUp)


If someone pays both his EMIs at once, then that name might not be in the second list.

What I Need to Calculate is:

If one pays both his Total EMI Amount (EMI value *2) , his status should be shown as PAID.

If someone pays only one EMI then his status should be shown as HALF.

And if someone doesn't make any payments, his/her status should be shown as UNPAID.


__________________________
Master.xlsx
ABCDE
1NameEMIPay-1Pay-2STATUS
2Ajay500500500
3Vijay7001000#N/A
4Priyanka3000300
5Rohit100000
Sheet1
Cell Formulas
RangeFormula
D2:D5D2=VLOOKUP(A2,'C:\Users\Nidhi\Desktop\Excel Problems\Main Issue\[Daily.xlsx]Sheet1'!$A:$D,3,0)





Daily.xlsx
ABCD
1NameEMIPay-2STATUS
2Sumit5000
3Priyanka700300
4Rohit10000
5Ajay500500
Sheet1

___________________________________

Any Help will be very very appreciated

Thank You.
 

Attachments

  • Main Issue.jpg
    Main Issue.jpg
    93.7 KB · Views: 10

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi,

I'm not sure I understand entirely.
So if Column D has #N/A, then that's "PAID" whether or not there's a positive number in C, or vice versa ??

Book3.xlsx
ABCDE
1NameEMIPay-1Pay-2STATUS
2Ajay500500500PAID
3Vijay7001000#N/APAID
4Priyanka3000300HALF
5Rohit100000UNPAID
Sheet1086
Cell Formulas
RangeFormula
E2:E5E2=IFNA(IF(AND(C2,D2),"PAID",IF(OR(C2,D2),"HALF","UNPAID")),"PAID")
 
Upvote 0
Thank you so much @jtakw sir for you reply

I am very sorry but there is just one mistake in that file :
Vijay's EMI Amount is 500 not 700
Hence his total due amount is 500 * 2 = 1000,
He paid Entire EMI Amount (1000= 500*2) in one go. That's why his name is not in Another File hence it is showing #N/A

Master.xlsx
ABCDE
1NameEMIPay-1Pay-2Expected STATUS
2Ajay500500500Paid
3Vijay5001000#N/APaid
4Priyanka3000300Half
5Rohit100000Unpaid
6Suraj200200#N/AHalf
Sheet1
Cell Formulas
RangeFormula
D2:D6D2=VLOOKUP(A2,'C:\Users\Nidhi\Desktop\Excel Problems\Main Issue\[Daily.xlsx]Sheet1'!$A:$D,3,0)


Let's Say
Tom's EMI is 500
Tom has to pay two EMIs
So his total due is 500*2 =1000,

If he pays those 1000 in one go(from Pay-1 or Pay -2( Value coming from another file via VLOOKUP) ) then his status should be shown as PAID
(Pay 1 or Pay 2 =1000)


If he pays 1000 in two terms Pay1+Pay2(VLOOKUP) then his status should be shown as PAID
(Pay 1 +Pay 2 =1000)


If he just pays one EMI 500 (Either from Pay 1 or Pay2(VLOOKUP) then status should be Half
(Pay 1 +Pay 2 =500)


And If he don't pay anything , then his status should be Unpaid
(Pay 1+ Pay 2 =0)





Again Thank you for your guidance
 
Upvote 0
Thanks for the additional info.

If you can change your current D column formula to:

Excel Formula:
=IFERROR(VLOOKUP(A2,'C:\Users\Nidhi\Desktop\Excel Problems\Main Issue\[Daily.xlsx]Sheet1'!$A:$D,3,0),0)

Just adding IFFEROR(original formula,0)

Then the calculation for STATUS is much simpler:

Book3.xlsx
ABCDE
1NameEMIPay-1Pay-2STATUS
2Ajay500500500Paid
3Vijay50010000Paid
4Priyanka3000300Half
5Rohit100000Unpaid
6Suraj2002000Half
Sheet1086
Cell Formulas
RangeFormula
E2:E6E2=IF(C2+D2=B2*2,"Paid",IF(C2+D2,"Half","Unpaid"))
 
Upvote 0
Solution
Thank you so much @jtakw sir

this is what i wanted to get


Although I made just a small change in the file, instead of using VLOOKUP i used SUMIF ,
so if a name appears twice in that second list it will get the sum


Again, Thanks a lot. The problem is solved
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top