Formula for formula description.

J23Excel

New Member
Joined
Dec 9, 2024
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I would like to create a formula to reference a cell with a formula and then replace each of the cell references within the cell with an offset reference; in effect, I would like to use column c to automatically describe, in plain english, what the formula in cell B1 is calculating. The example formula in the attached is a simple formula, but I would like to use this formula so that more complicated formulas can be described in my spreadsheet. I am thinking that there must be a way to do this with some combination of functions like replace, offset, formulatext or textsplit, but I am struggling with how to best do within excel (without using macros).

Then, I would like to create a formula to automatically write a Lambda function that I can then copy/paste into name manager.

In the attached:

B$1 already equals $C$8/$C/7*365
$C$1 should equal: Accounts Receivable / Revenue * 365
$D$1 should equal: Lambda(Accounts Receivable / Revenue,Accounts Receivable / Revenue*365)


Thank you in advance to the community for suggestions or help (or if this question has been answered previously, to a referral to the answer).
 

Attachments

  • lambda question.jpg
    lambda question.jpg
    22 KB · Views: 18

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi J23, welcome to the forum. This is not the complete answer, but this is a start. Note that the stuff you want can be quite hard. If you don't use multiple columns of data, but simple cells, I would start using named ranges, like so: Named Ranges in Excel
This example below was made using XL2BB, which makes showcasing your question much easier, do give it a try!

Cell Formulas
RangeFormula
B1B1=$B8/$B7*365
C1C1=FORMULATEXT(B1)
D3:G3D3=TEXTSPLIT(FORMULATEXT(B1),{"=";"*";"-";"+";"/"})
D4:G4D4=IFERROR(OFFSET(INDIRECT(D3),0,-1),D3)
D5:G5D5=IFERROR(INDIRECT(ADDRESS(ROW(INDIRECT(D3)),1)),D3)
C6C6=C1
D6:G6D6=SUBSTITUTE(C6,D3,D4)
Dynamic array formulas.
 
Upvote 0
Thank you for your helpful suggestions and solution! This works well and I can further adapt it for my use case from here.

I was not aware of the xl2bb add-in but will get that installed.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,225,371
Messages
6,184,583
Members
453,244
Latest member
Todd Luet

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top