evaluate

  1. L

    Filter and Copy selected data to a different worksheet

    Hi All I am looking for the cleanest way to pick selected rows of data and copy them to a different sheet where they will be used for dynamic graphs. The data on the first page will differ in size greatly, from 10 - 6000 rows, as it is an import from another system. I have looked about online...
  2. S

    Using application.run() with a custom class function, or maybe an alternative?

    With the code example below I'm trying to loop through the collection and call a few custom class functions. What I'd like to do is loop through an array of the class functions and call them using application.run(). In the example below the "IsWidthOK" function would run, then I would loop...
  3. D

    Help With Mulitplying Range by Values in Another Column

    I am using the following code to name a range in my worksheet and then dividing every cell in that range by the corresponding cell in column B and multiplying it by the corresponding cell in column A. Nothing happens when I run the code like it is, but if I substitute a range (like AU4:AT) for...
  4. J

    Formula's in VBA coding

    I have a question regarding some VBA code I am writing. It seems to me there should be a simple answer but I haven't been able to find it out. I want to write a macro to evaluate the selected cell by means of a formula and take action based on the results. I will illustrate it with an...
  5. J

    Evaluate Sumproduct into an array in VBA

    I think my previous post went a little haywire with font formatting so created a new one to freshen it up: HiI've done a bit of digging and found that EVALUATE could allow me to put the resulting value into an array. When I've modified the relevant section of code to put the resulting value to...
  6. Y

    Microsoft Excel 4.0 Macro -> VBA

    Hello! I've a few named ranges, most of it in one sheet. This sheet updates itself (when the workbook opened), from a central worksheet. In the other sheets are the drop-down lists. The first problem I had was that some lists are dependent on the value of an other cell. So I named the ranges...
  7. D

    Help Me Evaluate This Value In My UserForm

    I am not sure why this is not working, but my objective is to simply evaluate the following: If Me.Ncb.Value (the value from my userform) is present then MyIMPBucket = Me.Ncb.Value MYHCDBucket = Me.Ncb.Value Private Sub Ncb_Change() If (Me.Ncb.Value) Like "*" Then MyIMPBucket =...
  8. Randall00

    Embedding strings within strings within the Evaluate function...

    Like any good topic on MrExcel, this one begins with me pulling my hair out in frustration! I've constructed a fairly straightforward Index/Match formula that involves a couple of columns within Tables in Excel's main interface that looks something like this: =INDEX(A_OpenClose[Total Open...
  9. J

    VBA Eval Dynamic Variables

    So I've previously used Bash to do this. I was wondering if it's possible in VBA. I have a variable (let's call it ii) that will change based on a function...etc I then have another set of variables let's call then a1, a2, a3. Is it possible to do something like evaulate(a & "ii")? to get...
  10. B

    Evaluate Cell based on Number format VBA

    Hi, I'm trying to insert a random number into the unprotected cells on a worksheet depending on the type of number formatting in the cell. There are 4 basic cases: Number formatted as percent Number Formated general with no decimal places Number formatted general with two decimal places...
  11. D

    VBA evaluate, lookup and paste into comment field

    Hello all, I'm not brand new to VBA but for me this is overcomplex. Hope you can help in this case. I would like to create a macro which does the following to a column of dates: For each cell in the column/range it should check if the date in that cell is present in a named range (Bdays)...
  12. I

    Need to optimize VBA code using array formula

    I have the following code run by a macro to populate a cell with the value of an array formula using the evaluate function. The formula works but it rather slow and I have several of them in a row that need to execute. ActiveSheet.Range("O4").Value = Evaluate("MEDIAN(IF(E:E=M3, IF(I:I>0,I:I...
  13. G

    Add the last 2 or 3 non-zero numbers in a row

    I have a series of golf scores in rows. For the purpose of this league, we use your last three scores to determine your handicap. If you have played 1 or 2 rounds, we use your handicap for the one round or the two rounds. A typical row might look like this 85 0 84 88 0 81 86 0 85 The 0's are...
  14. L

    Help with a Macro to evaluate ConditionalFormatting Rule

    Hi, This particular project has me stumped. I'm trying to design a macro which loops through a range and checks whether the cell fill is red, it would then paste the cell address in another sheet. That part is all fine, the problem is that the cell is highlighted red as a result of a conditional...
  15. L

    FormatConditions Formula1 differences between 2003 and 2007

    Step1: Select range 'A1:B5' Step2: Fill with numbers Step3: Apply this FormatCondition: Formula '=A1=2', with Red Font. Then, all cells with contains number 2 are Red. Step4: Select cell 'B2' In VBA, Excel 2003: Msgbox ActiveCell.FormatConditions(1).Formula1 shows: '=B2=2' In VBA, Excel...
  16. Z

    Evaluate/summarize range of text to populate summary based on specific logic defined

    Hi all, I need to evaluate values from a list on one worksheet and summarize the answers on to another worksheet using specific logic. I don't write code so I seem to be lost. I can't figure this out based on other examples given because it's not an exact match to mine. here goes... Working...
  17. K

    VBA: "Evaluate" does not work with closed workbooks, but the same function does on sheet

    here is a sample code: Public Function getest(esttype, yr) Dim strf As String strf = "=counta('m:\folder\mds\[rating index.xls]" & esttype & Right(yr, 2) & "'!$1:$1)" MsgBox Evaluate(strf) End Function for "sales" and 2009, what strf reads is: =counta('m:\folder\mds\[rating...
  18. S

    Evaluate an array with worksheet.function

    Not sure if this is possible. I want to evaluate an array, actually a defined section of an array with a worksheet function. I know how to do this with a worksheet range like this... x = Evaluate("Worksheet.Function.Sum(.Range(" & .Cells(1, 2).Address & ":" & .Cells(2, 2).Address & "))")...

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