+ Reply to Thread
Results 1 to 7 of 7

How to Load formula from another category?

  1. #1
    Registered User
    Join Date
    01-29-2023
    Location
    London, England
    MS-Off Ver
    2015
    Posts
    4

    How to Load formula from another category?

    Hi, I tried everything. But can't get it to work. I want to load a category formula into multiple other categories. This way I don't have to replace every category and can I still make changes in the placement of the text. The formula needs to find the code of the page where it's loaded in.

    For the category text I use this code: =Category1!E2 and that works. But the formula will only load in the result of the code. When I load it in as Formulatext or as Formula the code stops working. How can I still load in the formula? Thank you
    Attached Files Attached Files
    Last edited by MrMEandBe; 01-29-2023 at 08:15 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: How to Load formula from another category?

    Please read the yellow banner at the top of this page on how to attach a sample workbook.

  3. #3
    Registered User
    Join Date
    01-29-2023
    Location
    London, England
    MS-Off Ver
    2015
    Posts
    4

    Re: How to Load formula from another category?

    I've attached an example. Don't know if it matters if the excel is in another language, but hope it at least clarifies my issue. In the example you see two categories:

    In A1 I load in Category1 A1. In B1 it loads the answer of Category1 B1 (0). But I want not the answer, I want to load in the formula code: =SUM(D6:D9) where the answer should be: 10 instead of zero.
    Last edited by MrMEandBe; 01-29-2023 at 09:13 AM.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: How to Load formula from another category?

    You probably should have had some explanations on what you are trying to achieve in your sample.

  5. #5
    Registered User
    Join Date
    01-29-2023
    Location
    London, England
    MS-Off Ver
    2015
    Posts
    4

    Re: How to Load formula from another category?

    In A1 you see that Category1 A1 is loaded in. In B1 it loads the answer of Category1 B1 (0). But I want not the answer, I want to load in the formula code: =SUM(D6:D9) from the Category1 page. And that should make the answer 10 instead of zero.

    So I want to load the function formula code from the Category1 page and find the answer on every page where I place this. I can see the text: "Test 1" and I can load this in with the code: =Category1!A1. But how can I load in the formula function so that it does the same thing as the Test 1 with an correct answer?
    Last edited by MrMEandBe; 01-29-2023 at 09:19 AM.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,057

    Re: How to Load formula from another category?

    Check out opposite of FORMULATEXT in this link https://superuser.com/questions/1515...atext-in-excel.

  7. #7
    Registered User
    Join Date
    01-29-2023
    Location
    London, England
    MS-Off Ver
    2015
    Posts
    4

    Re: How to Load formula from another category?

    Thank you, that works! Strange that it doesn't work without codes. But this fixes the issue.

+ 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] Support Request: On load check if Addon is Installed if yes, skip CustRibbon UI load.
    By pacosalasv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-27-2022, 02:19 PM
  2. [SOLVED] Macro to filter data by category and delete rows where category sums up to zero
    By Howardc1001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-02-2021, 12:57 PM
  3. Replies: 1
    Last Post: 11-24-2020, 10:44 AM
  4. Replies: 0
    Last Post: 04-09-2014, 04:21 PM
  5. Replies: 17
    Last Post: 12-29-2013, 10:28 PM
  6. Replies: 2
    Last Post: 09-14-2012, 04:31 AM
  7. [SOLVED] Productsum: Highest Frequency Category, Specific Main Category, Frequency of Category
    By T86157 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-24-2012, 12:43 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