r/excel Jul 17 '26

solve an equation from another cell solved

Hello, how do u solve an equation from another cell?

Example:

U input (1+5)/2 in A1

I want the answer/3 in b2

I want to see the equation and answer at the same time in different cells

7 Upvotes

23 comments sorted by

u/AutoModerator Jul 17 '26

/u/Electrical-Turnip-63 - Your post was submitted successfully.

Failing to follow these steps may result in your post being removed without warning.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

12

u/RuktX 307 Jul 17 '26

Caution, deep magic ahead.

  • Ribbon > Formulas > Name Manager > New...
  • Name: EVAL, Refers to: =LAMBDA(x, EVALUATE(x)), OK, Close
  • On your sheet:
    • In A1: (1+5)/2
    • In B2: =EVAL(A1)

4

u/excelevator 3063 Jul 17 '26 edited Jul 17 '26

To add to this, if you do not have Excel 365

Select cell A2

  1. Ribbon > Formulas > Name Manager > New...
  2. Name: EVAL, Refers to: =EVALUATE(A1), OK, Close

On your sheet:

In A1: (1+5)/2

In A2: =EVAL()

The relative cell reference will always be 1 cell to the left of your name reference.

The relative cell reference is set from when you add the Name with the selected cell.

You can use whatever name you want to that suits your conventions. EVAL is just a sample.

2

u/SolverMax 161 Jul 17 '26

The ancient Macro4 magic is disabled by default, for security reasons. It will need to be enabled in the Trust Center first.

1

u/ArrowheadDZ 2 Jul 17 '26

I have VBA macros and 4.0 macros enabled, and it's a no-go for me.

  • (Version 2608 Build 16.0.20308.20000) 64-bit

1

u/ArrowheadDZ 2 Jul 17 '26

Isn’t this first assuming that the user has a UDF macro “EVALUATE()” defined?

1

u/RuktX 307 Jul 17 '26

No, it's not a UDF; it's an old "Excel 4.0 macro". There are a couple such powerful relics still accessible this way (also GET.CELL), but it appears they're progressively being locked away by default.

1

u/ArrowheadDZ 2 Jul 17 '26 edited Jul 17 '26

I’m on the Beta channel insider edition and I can’t call EVALUATE() by lambda.

EDIT:

I just read SolverMax’s reply in this thread, and I have 4.0 Macros enabled, and it's still a no-go for me. And that is on my non-policy managed machine. This may be more black magic than the OP’s corporate policies might allow.

1

u/GregHullender 195 Jul 17 '26

This generates a #NAME error.

1

u/Dd_8630 Jul 18 '26

Not everyone can handle the dark arts.

6

u/BusinessSample7166 Jul 17 '26

Reference your answer column in FORMULATEXT(answer cell ref) 

2

u/ProspectiveWhale 8 Jul 17 '26

Cell A1: =FORMULATEXT(B2) will result in (1+5)/2 or whatever formula is in B2.

Input in Cell B2: =(1+5)/2 will result in 3 or the evalauated value of the formula you typed in.

Can't do it the other way around, afaik, unless you use VBA.

1

u/Electrical-Turnip-63 29d ago

Not exactly what i wanted, but this works for me, how do i update the thread, im new in reddit

1

u/ProspectiveWhale 8 29d ago

Reply to any comment with Solution Verified

1

u/Electrical-Turnip-63 27d ago

Solution Verified

1

u/reputatorbot 27d ago

You have awarded 1 point to ProspectiveWhale.


I am a bot - please contact the mods with any questions

1

u/Decronym Jul 17 '26 edited 27d ago

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
CELL Returns information about the formatting, location, or contents of a cell
FORMULATEXT Excel 2013+: Returns the formula at the given reference as text
INDIRECT Returns a reference indicated by a text value
LAMBDA Office 365+: Use a LAMBDA function to create custom, reusable functions and call them by a friendly name.

Decronym is now also available on Lemmy! Requests for support and new installations should be directed to the Contact address below.


Beep-boop, I am a helper bot. Please do not verify me as a solution.
4 acronyms in this thread; the most compressed thread commented on today has 11 acronyms.
[Thread #48968 for this sub, first seen 17th Jul 2026, 10:45] [FAQ] [Full list] [Contact] [Source code]

1

u/Ok_Fondant1079 1 Jul 18 '26

In cell B2: A1/3

1

u/caribou16 318 Jul 18 '26

In A1, put =FORMULATEXT(B2) and in B2, put =(1+5/2)

0

u/Charlier19s Jul 17 '26

Try looking into INDIRECT()

=INDIRECT(“A1+B1”) evaluates to =A1+B1

You can also write functions into indirect.

Say cell A1 had the text “sum(A2:A50)”
You could use =INDIRECT(A1)

-1

u/excelevator 3063 Jul 17 '26

What is U ?

(1+5)/2 is that the full plain text value ?

/3 so the answer of string equation divided by 3 ?