+ Reply to Thread
Results 1 to 11 of 11

IF AND OR formula help

  1. #1
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    69

    IF AND OR formula help

    Hi

    I need help with a formula that will help to put the values in the right payment due coloumn based on the transaction month and payment term.

    Below is an example and where I want to pull the amount payable to the over due coloumn, or Dec 22 or Jan 23 coloumn based on the transaction month and payment

    Appreciate any help either a Formula or a simple Macro

    Please see attached Excel
    Attached Files Attached Files
    Last edited by samyraj; 12-12-2022 at 04:02 AM.

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,414

    Re: IF AND OR formula help

    Hello samyraj.

    In the upload the specific criteria which determines which column the output goes is not intuitive to me. For instance you have two Transactions in the month of November with output in two different due columns.

    Please explain further.
    Dave

  3. #3
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    69

    Re: IF AND OR formula help

    Hi Dave

    One supplier invoice is with a November date is with a payment terms 30 days End of month therefore the invoice is payable in Dec 22. The other invoice with a November date is with a payment term 60 days end of month therefore this invoice is payable in Jan 23 therefore the amount is sitting in the Jan 23 column

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: IF AND OR formula help

    in h2 copy down and accross
    =IF(EDATE($C2,SUBSTITUTE($F2," EOM","")/30)=H$1,$E2,"")

    in g2
    =IF(EDATE($C2,SUBSTITUTE($F2," EOM","")/30)<DATE(YEAR(TODAY()),MONTH(TODAY()),1),$E2,"")

  5. #5
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: IF AND OR formula help

    Another way:

    Please try in H2 and copy down and across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,370

    Re: IF AND OR formula help

    In G2

    =IF($B2+$F2<H$1,$E2,"")

    in H2

    =IF(AND($B2+$F2>=H$1,$B2+$F2<=EOMONTH(H$1,0)),$E2,"")

    Copy across to I
    Attached Files Attached Files
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: IF AND OR formula help

    I forgot the Over Due column: Please try in G2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-16-2016
    Location
    London
    MS-Off Ver
    Office 2021
    Posts
    69

    Re: IF AND OR formula help

    Thank you everyone much appreciated . I found davsth's formula very useful

  9. #9
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: IF AND OR formula help

    You are welcome, thanks for the feedback.

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,558

    Re: IF AND OR formula help

    Administrative Note:

    Please note for future threads!

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2406 Win 11 Home 64 Bit
    Posts
    23,961

    Re: IF AND OR formula help

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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