+ Reply to Thread
Results 1 to 5 of 5

Write A+B=B+A with Excel Function

  1. #1
    Registered User
    Join Date
    11-06-2019
    Location
    NA
    MS-Off Ver
    365
    Posts
    4

    Write A+B=B+A with Excel Function

    Hi all,

    I'm trying to build this model A+B = B+A with Excel function (pls let me know if this can only be done with VBA, i'm not too sure)

    Criteria:
    * A+B = B+A at all times
    * Require to check if this A+B = B+A is true
    * If not true, show the difference
    * A+B = some value
    * B+A = some value
    * It's possible that the value of A+B does not equal to the value of B+A
    * Be prepared for the subset content of A and B to expand...I've thought of listing out all possibilities and checking with vlookup but it would be too much to maintain when this grows to millions of pairs.

    Thanks,
    Yami
    Last edited by Yami_Excel; 11-06-2019 at 06:44 AM.

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Write A+B=B+A with Excel Function

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    11-06-2019
    Location
    NA
    MS-Off Ver
    365
    Posts
    4

    Re: Write A+B=B+A with Excel Function

    Hi, I've been trying to upload the worksheet but something about this website is not working. I only see a bubble as clicking on the file upload icon. Already tried in multiple different browsers including IE, Safari, Firefox, Chrome. None of them works though.

    Excel link:
    https gofile.io/?c=Vbi0dE

    In case you cannot access the link, here it is:

    Enity Intercompany E + I Difference
    A001 A002 A001A002 Asset $100 $0
    A002 A001 A002A001 Liability $100

    A001 A003 A001A003 Asset $100 $10
    A003 A001 A003A001 Liability $90

    A001 A004 A001A002 Asset $100 $0
    A001 A004 A001A002 Liability $0
    A004 A001 A002A001 Liability $100

    Logic:
    Need to automate A+B = B+A so that they would cancel each other out
    Asset of A+B cancels with Liability of B+A



    Formula View:

    Enity Intercompany E + I Difference
    A001 A002 =A2&B2 Asset 100 =E2-E3
    A002 A001 =A3&B3 Liability 100

    A001 A003 =A5&B5 Asset 100 =E5-E6
    A003 A001 =A6&B6 Liability 90

    A001 A004 A001A002 Asset 100 =E8-E9-E10
    A001 A004 A001A002 Liability 0
    A004 A001 A002A001 Liability 100

    Logic:
    Need to automate A+B = B+A so that they would cancel each other out
    Asset of A+B cancels with Liability of B+A

  4. #4
    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
    82,700

    Re: Write A+B=B+A with Excel Function

    Please read the instructions again and attach the workbook here. Many members cannot or will not follow external links.
    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.

  5. #5
    Registered User
    Join Date
    11-06-2019
    Location
    NA
    MS-Off Ver
    365
    Posts
    4

    Re: Write A+B=B+A with Excel Function

    hi, sorry, i'll contribute elsewhere before coming back to this then. thx

+ 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] Write Sub procedure to format excel and write case/if statement to text file
    By vbronton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-06-2018, 08:26 AM
  2. Excel hangs when trying to use addfromstring function to write a macro
    By gows1982 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-24-2014, 03:29 AM
  3. How to write Macros function to open other Excel files?
    By AP Accountan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2013, 12:52 PM
  4. Replies: 10
    Last Post: 12-10-2012, 03:26 PM
  5. [SOLVED] RE-write if function with isna function for more values
    By funtastic in forum Excel General
    Replies: 6
    Last Post: 07-12-2012, 04:33 AM
  6. How do I write this Function using Excel's IF
    By Unsafe in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-27-2007, 05:42 PM
  7. [SOLVED] How to write IF function in Excel 2000 when there are two conditi.
    By Dajana in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2005, 11:06 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