+ Reply to Thread
Results 1 to 9 of 9

Need help with IF function to sort debits and credits

  1. #1
    Registered User
    Join Date
    01-18-2022
    Location
    Anchorage, Alaska
    MS-Off Ver
    Excel
    Posts
    5

    Smile Need help with IF function to sort debits and credits

    Need desperate help to figure out the IF formula to sort values from Adjustments into debit & credit columns of the Adjusted Balances.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need help with IF function to sort debits and credits

    I'm not sure exactly what you want (it would have helped if you had shown manually what you are expecting), but try this formula in N4:

    =SUMIFS($D4:$K4,$D$3:$K$3,N$3)

    Copy into M4, then copy both formulae down as required.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    01-18-2022
    Location
    Anchorage, Alaska
    MS-Off Ver
    Excel
    Posts
    5

    Re: Need help with IF function to sort debits and credits

    Attachment 764063

    Here is an example of what I need it to look like. The formula must know to calculate the adjustment and place it in the correct debit or credit column. There must not be a credit and a debit in the same row. Unfortunately the formula posted above does not place the adjusted number into the correct column.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need help with IF function to sort debits and credits

    The attachment is not valid. To attach a sample Excel workbook, you should follow the instructions in the yellow banner at the top of the screen. Do not try to use the paperclip icon, as it does not work on this forum.

    Pete

  5. #5
    Registered User
    Join Date
    01-18-2022
    Location
    Anchorage, Alaska
    MS-Off Ver
    Excel
    Posts
    5

    Re: Need help with IF function to sort debits and credits

    Apologies I am new to this site. I have attached the workbook properly this time I think.
    Attached Files Attached Files

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Need help with IF function to sort debits and credits

    It is still not clear what you want to achieve, as you seem to have attached the same workbook as in Post #1.

    Manually place the values in the cells where you want the formula to go, and give them a yellow background so it is clear how you have arrived at those values.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    01-18-2022
    Location
    Anchorage, Alaska
    MS-Off Ver
    Excel
    Posts
    5

    Re: Need help with IF function to sort debits and credits

    I have highlighted the boxes and placed arrows with instructions in caps lock for ease of access. I need the unadjusted balance to add the debit or credit in the adjustments column, and place the correct balance in the debit or credit columns under adjusted balances. For example: Lets say there is 500,000 Cr in unadjusted balances, and a 600,000 Dr adjustment. I need the IF formula to know that the answer will be a 100,000 Dr balance in the Adjusted Balances column and automatically place the number in the correct Dr or Cr column. Does that make sense?
    Attached Files Attached Files
    Last edited by mikevh21; 01-19-2022 at 04:44 PM.

  8. #8
    Registered User
    Join Date
    01-18-2022
    Location
    Anchorage, Alaska
    MS-Off Ver
    Excel
    Posts
    5

    Re: Need help with IF function to sort debits and credits

    Anyone able to help me with this? It's due in a few hours...

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

    Re: Need help with IF function to sort debits and credits

    This formula replicates the values in M4:N9
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    This formula replicates the values in M14:N19
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    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. [SOLVED] Matching Debits and credits
    By AB1992 in forum Excel General
    Replies: 3
    Last Post: 04-23-2020, 07:43 AM
  2. Knocking off debits and credits
    By Tmmm in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2019, 05:57 PM
  3. Matching Debits and Credits
    By jharvey87 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2016, 08:38 AM
  4. [SOLVED] Offset debits and credits - p/o
    By leebird in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-05-2015, 09:22 PM
  5. getting the total of debits and credits
    By ammartino44 in forum Excel General
    Replies: 5
    Last Post: 07-24-2015, 06:10 PM
  6. Matching Debits and Credits
    By Hiruy in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2015, 07:06 AM
  7. Debits and credits
    By Willow350 in forum Excel General
    Replies: 2
    Last Post: 12-07-2014, 11:34 AM

Tags for this Thread

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