• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Search results

  1. L

    Multivariable Monte Carlo in Excel: use many =RAND() cells, or one global one?

    Pardon my late response. I am using the formula which gets created by this free simulation add-in https://www.probabilitymanagement.org/tools-1 The formula is '=IF( Minimum > Most_Likely, NA(), IF( Most_Likely > Maximum, NA(), IF( Minimum = Maximum, Most_Likely, IF( Random_number < ((...
  2. L

    Multivariable Monte Carlo in Excel: use many =RAND() cells, or one global one?

    Thanks Hui. Re: In my first sentence I mentioned "Revenue is assumed to follow a defined normal distribution and Costs, a triangular distribution. " Neither are flat, and one is in fact normal.
  3. L

    Multivariable Monte Carlo in Excel: use many =RAND() cells, or one global one?

    I am making a simple monte carlo model in Excel, using a Data Table to calculate Profit as Revenue minus Costs, where Revenue is assumed to follow a defined normal distribution and Costs, a triangular distribution. Right now, each of the two random variable cells refers to its own cell...
  4. L

    How to specify which chart a macro should change

    Thank you Kenneth!
  5. L

    How to specify which chart a macro should change

    Hi, some years ago I got some help creating the code below, which sets chart parameters (scale etc) from values in named worksheet cells. It works great. Except that it does this to every chart on a given worksheet, while now, I only want it to do something to one specific chart, which I've...
  6. L

    Excel 2010 user; need help revising code using the Excel 2013-only DAYS function please

    Yes indeed, I got confused between the worksheet and vba functions. The corrected code is iOff = DateDiff("d", dAvgDate, Range("E11")) '+ IIf(iOff >= 0, 1, -1) [CODE/] Thanks!
  7. L

    Excel 2010 user; need help revising code using the Excel 2013-only DAYS function please

    Hi all, I recently got a book of example models using VBA and while it's gotten good reviews and seems to have some interesting stuff, the first example I played with (attached) doesn't run properly. This is for a simulation of project delays. When I run the following code Sub...
  8. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    Mods, how do I edit the title of this thread? I did it with another the other day but can't seem to recall how I did it. I'd like to add "Workaround found"
  9. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    The formula appears in different ways at different times. What I'm asking about would be part of a larger sub which the user starts with a command button. I think I've found a (maybe not elegant) solution, mentioned in my latest post.
  10. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    Ok, yes, the above would work, using this method for saying whether there is specific text within a string https://exceljet.net/formula/cell-contains-specific-text So I guess this is solved in that I can do what I'd like, although it seems klunky to have to take the extra steps to convert the...
  11. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    Thanks. I am using Excel 2010. I could send a file but it would only have two cells named CellA and CellB. I realise it's hard to imagine why someone would want to do this. Basically it is prevent a circular referemce. It's a long, irrelevant story. I'd like please to just keep the focus of this...
  12. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    Ok, I've looked here https://superuser.com/questions/353635/excel-name-referstorange-how-to-check-if-name-object-refers-to-a-range and here https://msdn.microsoft.com/en-us/library/bb209088(v=office.12).aspx and it seems like a solution can be found using some combination of "instr" and...
  13. L

    Error-handling to stop code from entering a formula which refers to a specific named cell or range

    I need some suggestions on error-handling help please. This is a rather obscure situation, but trust me, I need to do this. I have two named cells, "CellA" and "CellB". The macro enters a formula into CellA. The formula will vary. Basically, the macro must be free to write any formula in...
  14. L

    SOLVED: VBA code to change, via radio button, increment of a Form spinner control?

    This certainly works ... thank you sir
  15. L

    SOLVED: VBA code to change, via radio button, increment of a Form spinner control?

    Thanks guys. Meanwhile I think I've solved it... by ... uhm, actually trying it:rolleyes:
  16. L

    SOLVED: VBA code to change, via radio button, increment of a Form spinner control?

    I wonder if this is even possble...I'm using Excel 2010 if that matters, and also I don't want an xml solution as some users could be on Macs. Let's say I have a Form spinner control, linked to (i.e. controlling) a cell which must not be typed in. It makes the linked cell increment by X...
  17. L

    VBA to choose range, when the desired number of rows/ columns are variables stated on Excel sheet

    That is way cool. Thanks! Is there an easy way to specify home with a refedit box (selecting the cell) rather than typing in the cell address?
  18. L

    VBA to choose range, when the desired number of rows/ columns are variables stated on Excel sheet

    Thank you SO much, that works perfectly and is elegant and clear, now that I see it in terms of OFFSET syantax. I'd been looking quite some time, and this is so useful, thanks again sir! May I ask two follow up questions, please? -- How would I add error-handling if the dimensions requested...
  19. L

    VBA to choose range, when the desired number of rows/ columns are variables stated on Excel sheet

    Hi, I'm more or less a VBA newbie, I mainly record macros and try to adapt them. I'm not having any luck with something which I would imagine would be quite easy to do. If someone could help me with I would be very grateful, I could use this in many different ways. The basic idea is being...
Back
Top