+ Reply to Thread
Results 1 to 6 of 6

IF = currency is X and due day is 1, return day as 2

  1. #1
    Registered User
    Join Date
    03-25-2020
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    53

    IF = currency is X and due day is 1, return day as 2

    Hi there

    We normally pay certain types of creditors everyday but have recently changed to staggered payment days depending on currency, so want to adapt my existing workbook to reflect that:

    If the currency is GBP:

    Invoices due for payment Tuesday will be paid on Tuesday
    Invoices due for payment on Wednesday & Thursday will be paid on Wednesday
    Invoices due for payment Friday to Monday will be paid on Friday

    If the currency is non-GBP:

    Invoices due for payment on Monday will be paid on Monday
    Invoices due for payment on Tuesday & Wednesday will be paid on Tuesday
    Invoices due for payment on Thursday to Sunday will be paid on Thursday

    Confused as to how I would do this :/

    p.s. Dates tab in the attached book helps to pull in payments due on Saturday and Sunday into Friday

    Payment Date is based on col G in data tab
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-26-2015
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2019
    Posts
    8

    Re: IF = currency is X and due day is 1, return day as 2

    I can see on the dates tab you already use WEEKDAY and Choose. Why not employ them directly on the data sheet? This is what I did.

    In column M you will see
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If I have followed correctly your logic, this should do the trick. I've added a handful of other columns to help you check.
    Attached Files Attached Files
    --
    TG|ЕS

  3. #3
    Registered User
    Join Date
    03-25-2020
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    53

    Re: IF = currency is X and due day is 1, return day as 2

    Thanks Cemo, it did not twig for me that I could use it like that

    How do I fix the GBP when the payment is on a Sunday. Anything due on Fri-Mon for GBP will be paid on Fri but for Sunday it's showing it will be paid on Thursday on the new sheet, how do I fix this? row M?:
    Attachment 681112

  4. #4
    Registered User
    Join Date
    03-25-2020
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    53

    Re: IF = currency is X and due day is 1, return day as 2

    I think I have it adjusted correctly, changing the first argument to -2, instead of -3:

    =IF(D641="GBP",
    CHOOSE(WEEKDAY(E641,2),E641-3,E641,E641,E641-1,E641,E641-1,E641-2),
    CHOOSE(WEEKDAY(E641,2),E641,E641,E641-1,E641,E641-1,E641-2,E641-3))

  5. #5
    Registered User
    Join Date
    03-25-2020
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    53

    Re: IF = currency is X and due day is 1, return day as 2

    Hello

    I was a bit short-minded in what i was thinking for the above, as I needed to think about 1) bank/public holidays and 2) never pay early over month-end, to optimise cash position on the balance sheet at month-end.

    The main criterions in the main post applies but is what happens 1) when there is a bank/public holiday 2) at month-end

    1) Bank Holiday - If the EUR invoice due payment date falls on a Wednesday, as per main criteria it will be paid on Tuesday normally, along with invoices due for payment on Tuesday. But if Tuesday is a bank/public holiday, it will instead be paid on the Monday, along with the Monday due invoices, to ensure the beneficiary doesn't get paid late.

    2) Month-End - If the EUR invoice due payment date falls on a Wednesday, as per main criteria, it will be paid on Tuesday normally, along with invoices due for payment on Wednesday. But if Wednesday is the 1st of Month Y, we would pay it on Wednesday, rather than early on the last day of Month X

    I've attached the workbook with the good results from the thread's original aim (always "doc" currency)

    I was thinking maybe a separate Dates tab that has lookup table for bank/public holidays that I can adjust, for the bank holidays issue?
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,592

    Re: IF = currency is X and due day is 1, return day as 2

    I feel that we may be better able to help if we could see specific examples of what you are getting with the method you are presently using versus what you want.
    We probably need to see a couple of examples of regular payments (where holidays and month-end do not have an effect), a couple of holiday payments and a couple of month-end payments.
    I feel that your thought about the separate date tab for holidays is a good idea as opposed to writing a more complicated formula.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Return Number in Currency format
    By felizeng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2017, 05:27 PM
  2. Return a max currency value from a range that includes numbers/text
    By simontek in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-28-2012, 06:00 AM
  3. [SOLVED] Excel worksheet function that will return the currency for a cell
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 07:05 AM
  4. Excel worksheet function that will return the currency for a cell
    By Ron Rosenfeld in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 06:05 AM
  5. [SOLVED] Excel worksheet function that will return the currency for a cell
    By funmi_Bash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Excel worksheet function that will return the currency for a cell
    By funmi_Bash in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Excel worksheet function that will return the currency for a cell
    By funmi_Bash in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2005, 05:05 AM

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