Multiple formulas given a formula code

sugarplant

New Member
Joined
Feb 18, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
I have a table similar to the following, where I have to calculate column E depending on what the equation code is in column A. Different equations require different variables, which are listed in columns B, C, and D. Is it possible to do some sort of VLOOKUP in E that can have a different formula depending on the Equation code in Column A? I have about 19 different equations, so trying to avoid a nested IF function. Thanks!!

A​
B​
C​
D​
E​
1Equation #XYZResult
2WW.114??
3WW.22??
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
hi and welcome to MrExcel
this sounds like a simple macro task to me. i think you are prolly right in expecting a horrible nested formula if you use normal sheet formulae.
have you done anything with macros
 
Upvote 0
Thanks! I was trying to avoid macros, but if I must I must. I've just been managing macros by copy pasting code from similar solutions I find here, but I haven't seen anything on my particular problem. Any suggestions?
 
Upvote 0
i can help with this. post some of the formulae as examples
 
Upvote 0
They're a bit complicated as there are lots of constants, but i've simplified them. I'll replace the constants on my own.:

WW.1 = X * 99
WW.2 = Y*Z*99

The initial table just had place holder numbers. Here are some "actual" values.
For WW.1, X= 1,000
For WW.2, Y = 1,000 and Z = 800

Would the macro be very different depending on the formula? or can i just replace the formulae as needed.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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