concatenate IF to control accounts receivables given Status of it.

michell feitosa

New Member
Joined
Oct 7, 2012
Messages
5
I have a spreadsheet to control the accounts receivables Monday to Friday.<o:p></o:p>
Iam trying to make it as esiar as possible, to spend less time typing.<o:p></o:p>

In the worksheet, there's a IF formula which gives a STATUS of the payment, such as:
#PAID
#TODAY
#TOMORROW
#NEXT WEEK
#OUTSTANDING

The IF formula needs to compare de due date of the receivable with the TODAY() formula on the spreadsheet.

Basic like this:
If TODAY() = due date then STATUS: "TODAY"
If TODAY() > due date then STATUS: "OUTSTANDIND"

It's all good to make the IF formula until the due date falls on the weekend, because if the due date is on;

#Saturday needs to be pay (considered) on Friday, then
#Sunday need to be considered as Monday.

I did a complicated IF formula and I could make Saturdays as Friday, gol.
However, transform a Sunday date to Monday, is the complicate part for me.

Like, if today() is Friday, all the due date on Sundays and Mondays should be
considered on the column STATUS as "TOMORROW". because my work next
day after friday will be monday, so i need that the formula consider the
following sunday and monday as "TOMORROW".<o:p></o:p>


ALso you can see in my formula that if today() is Thursday, whatever has a date as
saturday will be considered as Friday then I will have the STATUS
"TOMORROW" whatever is friday and saturday.<o:p></o:p>


I copied and pasted below the worksheet, because i could find a botton to attached the file.
Thank you in advance for any help you can provid.<o:p></o:p>

Michell Feitosa

This is my formula on column N:
=IF(M5="","",IF(M5>=0,"PAID",IF(IF(WEEKDAY(F5,2)<6,F5,IF(WEEKDAY(F5,2)=6,F5-1,IF(WEEKDAY(F5,2)=7,F5+1,)))<$N$2,"OUTSTANDING",IF(IF(WEEKDAY(F5,2)<6,F5,IF(WEEKDAY(F5,2)=6,F5-1,IF(WEEKDAY(F5,2)=7,F5+1,)))=$N$2,"TODAY",IF(IF(WEEKDAY(F5,2)<6,F5,IF(WEEKDAY(F5,2)=6,F5-1,IF(WEEKDAY(F5,2)=7,F5+1,)))=$N$2+1,"TOMORROW","NEXT WEEK")))))
Accounts Reciveables Today's date15/03/13 Fri
ABCDEFGHIJKLMNOP
WEEKIDNAME$/DAY$/WEEKDUE DAYPERIOD fromPERIOD toDAYSAMOUNTRENT TO BE PAIDMONEY GIVENBALANCESTATUSOBSERVATIONBANK ACCOUNT
#NUM!5000Michell Feitosa$25.00$175.0010/03/13 Sun10/03/13 Sun23/03/13 Sat14$350.00$350.00350$0.00PAID
#NUM!5001Michell Feitosa$25.71$180.0011/03/13 Mon11/03/13 Mon24/03/13 Sun14$360.00$360.00360$0.00PAID
#NUM!5002Michell Feitosa$28.57$200.0012/03/13 Tue12/03/13 Tue25/03/13 Mon14$400.00$400.00400$0.00PAID
#NUM!5003Michell Feitosa$21.43$150.0013/03/13 Wed13/03/13 Wed26/03/13 Tue14$300.00$300.00-$300.00OUTSTANDING
#NUM!5004Michell Feitosa$25.57$179.0014/03/13 Thu14/03/13 Thu27/03/13 Wed14$358.00$358.00-$358.00OUTSTANDING
#NUM!5005Michell Feitosa$25.71$180.0015/03/13 Fri15/03/13 Fri28/03/13 Thu14$360.00$360.00-$360.00TODAY
#NUM!5006Michell Feitosa$25.86$181.0015/03/13 Fri15/03/13 Fri28/03/13 Thu14$362.00$362.00-$362.00TODAY
#NUM!5007Michell Feitosa$26.00$182.0016/03/13 Sat16/03/13 Sat29/03/13 Fri14$364.00$364.00-$364.00TODAY
#NUM!5008Michell Feitosa$26.14$183.0016/03/13 Sat16/03/13 Sat29/03/13 Fri14$366.00$366.00-$366.00TODAY
#NUM!5009Michell Feitosa$26.29$184.0017/03/13 Sun17/03/13 Sun30/03/13 Sat14$368.00$368.00 -$368.00NEXT WEEK
#NUM!5010Michell Feitosa$26.43$185.0017/03/13 Sun17/03/13 Sun30/03/13 Sat14$370.00$370.00 -$370.00NEXT WEEK
#NUM!5011Michell Feitosa$26.57$186.0017/03/13 Sun17/03/13 Sun30/03/13 Sat14$372.00$372.00 -$372.00NEXT WEEK
#NUM!5012Michell Feitosa$26.71$187.0018/03/13 Mon18/03/13 Mon31/03/13 Sun14$374.00$374.00 -$374.00NEXT WEEK
#NUM!5013Michell Feitosa$26.86$188.0018/03/13 Mon18/03/13 Mon31/03/13 Sun14$376.00$376.00 -$376.00NEXT WEEK
#NUM!5014Michell Feitosa$27.00$189.0018/03/13 Mon18/03/13 Mon31/03/13 Sun14$378.00$378.00 -$378.00NEXT WEEK
#NUM!5015Michell Feitosa$27.14$190.0025/03/13 Mon25/03/13 Mon7/04/13 Sun14$380.00$380.00 -$380.00NEXT WEEK
#NUM!5016Michell Feitosa$27.29$191.0026/03/13 Tue26/03/13 Tue8/04/13 Mon14$382.00$382.00-$382.00NEXT WEEK
#NUM!5017Michell Feitosa$27.43$192.0027/03/13 Wed27/03/13 Wed9/04/13 Tue14$384.00$384.00-$384.00NEXT WEEK
#NUM!5018Michell Feitosa$27.57$193.0028/03/13 Thu28/03/13 Thu10/04/13 Wed14$386.00$386.00-$386.00NEXT WEEK
#NUM!5019Michell Feitosa$27.71$194.0029/03/13 Fri29/03/13 Fri11/04/13 Thu14$388.00$388.00-$388.00NEXT WEEK

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col span="2"><col><col><col><col><col><col><col><col></colgroup>


 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,215,603
Messages
6,125,776
Members
449,259
Latest member
rehanahmadawan

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