Make Nested Index Match formula return calculation instead of text VBA

annab7

New Member
Joined
Nov 18, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello everyone i need help please!

I have the following formula : =IF($D9=0,"",($D9*INDEX(sheet1!E:G,MATCH($A$18,sheet1!A:A,0),MATCH("X",$N9:$P9,0)))+($E9-$D9)*INDEX(sheet1!H:J,MATCH($A$18,sheet1!A:A,0),MATCH("X",$N9:$P9,0)))

What i am trying is to find an evaluate vba way.. so that my functions returns values .

In other words formula be looking like this: IF($D9=0,"",(210*2.0089)+(210-211)*0.123

i ve been trying hard but i ve had no success

Thank you in advance
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Welcome to the Forum!

The question is not entirely clear, but perhaps?

ABCDEFGHIJKLMNOP
1
2
3
4
5
6
7
8ValueFormula
9421.992=IF($D9=0,"",(210*2.0089)+(211-210)*0.123)210211BlahXBlah
10
11
12
13
14
15
16
17
18FindMe
Sheet2
Cell Formulas
RangeFormula
B9B9=IF($D9=0,"",($D9*INDEX(Sheet1!E:G,MATCH($A$18,Sheet1!A:A,0),MATCH("X",$N9:$P9,0)))+($E9-$D9)*INDEX(Sheet1!H:J,MATCH($A$18,Sheet1!A:A,0),MATCH("X",$N9:$P9,0)))
C9C9="=IF($D9=0,"""",(" & $D9 & "*" & INDEX(Sheet1!E:G,MATCH($A$18,Sheet1!A:A,0),MATCH("X",$N9:$P9,0)) & ")+(" & $E9 & "-" & $D9 & ")*" & INDEX(Sheet1!H:J,MATCH($A$18,Sheet1!A:A,0),MATCH("X",$N9:$P9,0)) & ")"


ABCDEFGHIJ
1
2
3FindMe32.00897110.12317
4
Sheet1
 
Upvote 0
Hello and thank you so much for your respond.
Yes i wasnt clear,sorry about that.
What i ment is : When user clicks on formula cell in formula bar appears the formula
1637311787064.png


What i need is to appear the formula with calculation results:

1637311879113.png


Thank you
 
Upvote 0

Forum statistics

Threads
1,214,621
Messages
6,120,563
Members
448,972
Latest member
Shantanu2024

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