+ Reply to Thread
Results 1 to 7 of 7

Please help!!!! Extremely difficult formula to create?

  1. #1
    Registered User
    Join Date
    09-11-2020
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2020
    Posts
    6

    Exclamation Please help!!!! Extremely difficult formula to create?

    I'm trying to create a complex formula. I tried to upload a screenshot of it but for some reason, the screenshot won't upload. So here's the problem. Picture 2 cells side-by-side such as A1 AND B1. A1 is a number in kilograms (metric system). B1 is a number in pounds (imperial system). When you type a number into A1 it automatically gets converted into pounds for B1. However, B1 cannot do the same thing for A1 because that causes the Circular Reference Problem. Here's where it gets very complicated because I need both cells to work interchangeably without causing a Circular Reference Issue which would stop it from working.

    I need a formula that will basically do the following 3 things.
    • The formula entered into A1 must tell A1 this information - If B1 is empty right now than cancel out (or just ignore) the formula in B1. Do not let B1 transfer anything or convert anything into A1. Only the formula in A1 is allowed to send its converted data to B1. Just not vice versa.
    • The formula entered into B1 must tell B1 this information - If A1 is empty right now than cancel out (or just ignore) the formula in A1. Do not let A1 transfer anything or convert anything into B1. Only the formula in B1 is allowed to send its converted data to A1. Just not vice versa.
    • If possible, both of the formulas also need to have an IF, OR, IFBLANK function included in it as well so the formula will still be active in the cells even if all of the cells are blank.

    In other words, the formula allows A1 to cancel out the formula in B1 so that a Circular Reference Issue won't occur. But A1 still performs it's function and converts whatever number was entered (in Kilograms) to B1 (in pounds). So if type 10 into A1 then it would appear as 22 in B1. Because 10 Kilograms is 22 Pounds (10 x 2.2). But since the formula in B1 already got canceled out by the formula in A1, B1 will not try to convert the 22 back into 10 and send it back to A1 (10 / 2.2). AND VICE VERSA IF YOU ENTER A NUMBER INTO B1 FIRST, INSTEAD OF ENTERING A NUMBER INTO A1 FIRST. A1 and B1 work interchangeably.

    Yes, this is a really tricky formula. Any help will be hugely appreciated.
    Last edited by alexanderbouraad; 09-11-2020 at 03:34 AM. Reason: Correcting Typos
    Alexander Bouraad

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    8,736

    Re: Please help!!!! Extremely difficult formula to create?

    I need both cells to work interchangeably without causing a Circular Reference Issue which would stop it from working.
    Cannot see a formula working...Gonna cause issues...I cannot see a workaround other than VBA Solution...
    As an example see below...

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sintek; 09-11-2020 at 08:38 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere.....
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember......Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    09-11-2020
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2020
    Posts
    6

    Re: Please help!!!! Extremely difficult formula to create?

    That's perfect. You did it. But I don't know how to do what you did. I don't know how to program or use VBA.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    8,736

    Re: Please help!!!! Extremely difficult formula to create?

    Glad I could help...

    Basically what happens is following...
    When you enter a value into A or B the code activates and does a calculation based on what cell was entered into
    If A the code takes the value and multiplies it by Pound Conversion
    If B the code takes the value and divides it by Pound Conversion

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED
    Last edited by sintek; 09-12-2020 at 04:29 AM.

  5. #5
    Registered User
    Join Date
    09-11-2020
    Location
    Edmonton, Alberta, Canada
    MS-Off Ver
    2020
    Posts
    6

    Re: Please help!!!! Extremely difficult formula to create?

    Thank you! That is perfect. There's only one problem which is Excel won't let me change the dropdown menu from "General" to "Worksheet". It gives me an error that says "Variable uses an Automation type not supported in visual basic". The problem is if I input the code into General, the code doesn't stay there. As soon as I close Excel and reopen it, the code is deleted like it was never entered at all.

    One other small thing. In the code it says "IF NOT INTERSECT(TARGET, RANGE("A2:B2")) IS NOTHING THEN.
    In my real worksheet, the cells where the data is entered actually start at B14 and C14. Then they go all the way down the B and C columns for infinity basically. So I can keep the code exactly the same, but I just need to change the part where it says ""A2:B2" into the new "B14:C14". Everything else in the code says the same. Is that correct?

    QUICK SIDE NOTE: Why can't I upload screenshots to show these things? I have screenshots to make it easier. But if I click on "Insert Image" and upload the file of the image, nothing happens. There's no save option. It's the correct file format and size. I just can't add an image to this message.

  6. #6
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    8,736

    Re: Please help!!!! Extremely difficult formula to create?

    Hi Alexander

    Thank you! That is perfect.
    So why problems then, unless, you are trying to incorporate this into your own file which means it won't work...it was an example only...

    Excel won't let me change the dropdown menu from "General" to "Worksheet"
    What does this mean...Can you explain in a little more detail...
    Will need you to upload your sample file to see what is going on as it is not the same setup as my file...

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019; O365
    Posts
    19,176

    Re: Please help!!!! Extremely difficult formula to create?

    Administrative Note:

    Welcome to the forum.

    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. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

+ 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. Strange issue with extremely long SUM formula
    By Glenn. in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 05-29-2019, 10:32 AM
  2. Replies: 0
    Last Post: 03-11-2019, 11:05 PM
  3. Extremely Complex IF/SEARCH Formula
    By cowboy1388 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-17-2015, 02:10 PM
  4. Replies: 2
    Last Post: 05-31-2015, 08:48 PM
  5. Excel,so difficult to create this VBA project
    By OrxanTagizade in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 11-22-2014, 04:02 PM
  6. Replies: 2
    Last Post: 12-20-2013, 12:12 AM
  7. Extremely long formula
    By chcwebb in forum Excel General
    Replies: 7
    Last Post: 08-03-2009, 04:31 PM

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