matching debit and credit based ondate

shamsu203

Board Regular
Joined
Jun 12, 2014
Messages
83
Office Version
  1. 365
Platform
  1. Windows
I have this worksheet where column a is date (range name datessfi) column bis description column c is debit (range name Debitsfi) and column d isCredit(range name creditsfi).
I want to show in column e paid against the date in column a when the month and date in column b(date format MMM_YY) matches the date in column b. eg in the attached worksheet the highlighted cells are self explanatory. any suggestion
datedescriptiondebitcredit
1 Jul 2024jul rent16500 paid
1 Aug 2024aug rent16500 paid
1 Aug 2024Jul-24 16500
1 Sep 2024sep rent16500
3 Sep 2024Aug-24 16500
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Is this what you're looking for?

Book2
ABCDE
2datedescriptiondebitcredit
31-Jul-24jul rent16500paid
41-Aug-24aug rent16500paid
51-Aug-2424-Jul16500 
61-Sep-24sep rent16500paid
73-Sep-2424-Aug16500 
Sheet1
Cell Formulas
RangeFormula
E3:E7E3=IF(TEXT(A3,"mmm")=LEFT(B3,3),"paid","")
 
Upvote 0
Is this what you're looking for?

Book2
ABCDE
2datedescriptiondebitcredit
31-Jul-24jul rent16500paid
41-Aug-24aug rent16500paid
51-Aug-2424-Jul16500 
61-Sep-24sep rent16500paid
73-Sep-2424-Aug16500 
Sheet1
Cell Formulas
RangeFormula
E3:E7E3=IF(TEXT(A3,"mmm")=LEFT(B3,3),"paid","")
I want to include the year also from both columns as the dates starts from 1jan 22
 
Upvote 0
That can be done, but currently some of the cells in column B don't contain years.
 
Upvote 0
column b will not necessarily have months and year in all cells. the format of the sheet as shown. column b shows the date when payment was made eg jul 24 . the other discription shown is for which the money is due eg b2 July rent due. hope I am clear
 
Upvote 0
column b will not necessarily have months and year in all cells. the format of the sheet as shown. column b shows the date when payment was made eg jul 24 . the other discription shown is for which the money is due eg b2 July rent due. hope I am clear
column b will not necessarily have months and year in all cells. the format of the sheet as shown. column b shows the date when payment was made eg jul 24 . the other discription shown is for which the money is due eg b2 July rent due. hope I am clear
 
Upvote 0
to clarify u will notice A1 has 1 jul 24 which match b 5 datejul24. so e 3 will show Paid
 
Upvote 0
something like
Excel Formula:
=if(sumifs($D:$D,$B:$B,">="&$A3,"<="&EOMONTH($A3))=$C3,"Paid","")
 
Upvote 0

Forum statistics

Threads
1,223,923
Messages
6,175,401
Members
452,640
Latest member
steveridge

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