evaluate

  1. J

    Build an excel formula from contents of other cells?

    What I'd like to do, is build something like: =1>2, which would of course evaluate out to FALSE. I don't want to just type that into a cell, though. I'd like to be able to have two cells, where one contains "1" and the other contains ">2". Then, as part of a formula in another cell, I want...
  2. M

    Evaluate Match 3 Conditions

    Hi Everybody, I've found similar threads but I couldn't find the solution. I have a table with some info and a macro adding a new line with more info. I need a code to search the info contained in the first three cells of the new line in the previous rows and return row number with the matching...
  3. D

    evaluate formula vs VBA function

    I have a complex spreadsheet with an Excel table containing my data and formula [in Excel 2010] I have a series of columns by month. eg. Jan x, Jan y, Jan z, Jan Total, Feb x, Feb y, Feb z, Feb total, etc (thru to end of year). I have a YTD formula that is driven by a drop-down (where I select...
  4. C

    How to change #VALUE! to 0 in formaula or Change all Non Value Cells to Zero

    Good afternoon all, I am very frustrated as everything i have tried has failed so let me explain: In Column E Row6 i have the following formula: =IF(ISNUMBER(SEARCH("WON",Jan!A6)),Jan!G6,"") - Working Good In Column J Row6 I have the following formula...
  5. R

    Creating an exception price list

    Hey all I need some genius, I've been trying to find a way to swap an exception price with a generic item price for specific customers. I have two large databases, one with item codes/descriptions/prices (CC8-3465, CC16- 3324, MSO2-1456, etc.), and one with customers (1002 - Customer 1, 3244 -...
  6. G

    Reference cell in other workbook using an address concatenated from other cells

    I have the following cells A1: ="'\\TBGSCOTLAND\Projects\00 Master Files\_ECRs\ECR-G-" A2: =".xlsx'!" A6: 3002 C1: cell_ECR_Priority C6: =$A$1&$A6&$B$1&C$1 C1 to AY contain their own cell names like above A6 to A1000 contain their own numbers It was done this way so that C6 could be...
  7. T

    ROW() inside OFFSET() inside IF() not expanding array always!

    I have a complex worksheet/graph I'm building that requires a lot of array building. I've run into either a bug or a side-effect that prevents an array function from being evaluated properly when used in the following order of functions: IF ( condition, OFFSET( ref, ROW(A1:A4), col)) Normally...
  8. Jon von der Heyden

    if(row(),formula) Evaluate construct returns 1st array value only

    Hi All Say I have the following: Selection.Value = "if(row(),vlookup('Test'!$A$2:$A$10,Test!$D$2:$E$4,2,false))" Although the match value is an array, I would have assumed the result to return an array. Selection is same dimension (9 rows, 1 column). I have also attempted the same using...
  9. L

    VBA Evaluate Issue

    Hi All, I'm having some trouble speeding up my VBA code. Below is the current code I have that works perfectly, but takes a while to fill down and calculate. Dim lastRow As Long Dim strFormulas(1 To 3) As Variant Dim sh As Worksheet lastRow = Cells.Find("*", SearchOrder:=xlByRows...
  10. T

    if text and if number in a cell then.. Please help.

    Hi all. I have a dilemma I hope you can help me with. I am not great at VBA so bare with me. I need a macro that will look in an individual cell and work out what to do with its contents. There could be a number, or a text and a number. the column is essentially serial numbers. for eg. item 123...
  11. J

    Calculating an expression stored in a string in VBA

    I need to evaluate a VBA expression in VBA, which sounds easy but I cannot figure it out... Test1 is how I want it to work, I want the Msgbox to display 2 like it does in the Test2-macro. I haven't got any versions of Evaluate to work, Application.Evaluate, ActiveSheet.Evaluate or...
  12. D

    When setting RGB values, 'Evaluate' gives different results when the same code is repeated...

    Dear friends, First post. Sorry for any mistakes in netiquette, etc. I am trying to work on the programmatic creation of objects that have foreground and background colors. The value of the dot referenced (and other) properties is stored in a worksheet and retrieved. Setting RGB values of...
  13. ask2tsp

    named range used as argument in ROWS or COLUMNS function results in #VALUE! error

    named range namedRng ="$A$1:"&ADDRESS(COUNTA($A:$A);COUNTA(!$1:$1);1) that in my case evaluates to $A$1:$H$74 when a cel contains the formula =ROWS(namedRng) it shows #VALUE! i tried evaluate formula where the formula evaluates to ROWS($A$1:$H$74) when a cel contains the formula...
  14. D

    VBA: Inconsistent Evaluate() behaviour

    Good morning, I am trying to to use the VBA function Evaluate as per below Function eval(formula As String) As Variant eval = Application.Evaluate(formula) End Function If A1 I put '=3+2' it works perfectly. If in A1 i put '=GETPIVOTDATA("[Measures].[Total Rev Disc USD]";$I$1) - where...
  15. P

    How to evaluate an workbook object by its name in code?

    Declaration: Private wbAcctFees As Workbook Public Function mac() Set wbAcctFees = Workbooks.Open(frmPart1.txtAcctFees.Value) End Function Formula in a Cell: =VLOOKUP(A2,INDIRECT("["&GetFileNamefromCode("wbAcctFees")&".xlsx]gen_rpt'!$A:$K"),11,) Public Function...
  16. L

    Clear ONLY cells that contain a formula that evaluates to "" using VBA

    I've searched rather extensively but can only seem to find the OPPOSITE of what I'm trying to. I want to use VBA to evaluate all of the cells in a given range on a sheet and delete the contents of any cells that have formulas that evaluate to "" We are using this spreadsheet to upload to a...
  17. L

    Looping Through Rows To Evaluate Mulitiple Columns?

    Data is set up as such, with first row being titles: --A --------------B------------------ C----------------- D Blank0 ------Luxury Status -------Region--------- Region Flag ---------------Non-Luxury ----------Central ---------------Non-Luxury ---------- East ---------------Non-Luxury...
  18. D

    Why is EVALUATE so Powerfull?? :)

    Hi :) My first threas here, I am pretty (not entirely) new to VBA, and I have a pretty simple question.. Why is the Evaluate formula considered the most powerfull function in VBA? I get that you can use Worksheet functions a lot easier, but is that it? Can anyone clear this up a bit? :) A...
  19. J

    Private Sub Worksheet_Change - help needed!!!

    Hi Guys The following code is supposed to pull in Evaluated values from one s/sheet ("Lookback.xlsm") to a different central s/sheet where the ID/Ref matches between the 2 s/sheets. Desired values within the row where the ID/Ref matches is then supposed to populate the central; s/sheet (where...
  20. J

    VLOOKUP with EVALUATE statement

    I am attempting to use VLOOKUP to automatically populate a spreadsheet with data from another workbook via a Private Sub Worksheet_Change. Basically, each time the user double-clicks a cell within Column 2 then this will activate the macro to execute the VLOOKUP and pull in the required data...

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