• 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. G

    vba code for SUM without using worksheetfunction

    Is there any chance I can have a little debugging help here? Basically, what this does (or should do) is find blank rows and title them based on the values in columns A through to C. It should then sum all data between the two blanks it's found. There is a three tier hierarchy, so what it...
  2. G

    vba code for SUM without using worksheetfunction

    Hi All, Should be a simple one: Is there a way of summing a range in VBA without using worksheetfunction? Unfortunately google isn't a lot of use for this kind of thing, as searching for "without" doesn't really work. Cheers, George
  3. G

    Speed up VBA

    one option to make your life a bit easier you could just whack a few message boxes in to say "do you want to update from [sheet1 name]?" and another for sheet2. At the very least it would mean you don't need to run all of the code unnecessarily. Wouldn't actually speed it up, but could save it...
  4. G

    How to use Vlookup in Excel.

    What specifically are you trying to use it for?
  5. G

    Macro to sum values based on condition

    Is the "Output" table fixed/manually populated, or do you want it to just show all unique values on its own?
  6. G

    Macro to reference workbook based on activesheet

    Thanks Luke, exactly the kind of thing I was looking for (I agree, playing about is the best way to learn these things).
  7. G

    Macro to reference workbook based on activesheet

    Hi all, I'm at a fairly basic understanding of macros, but I figured this would be a good little project to start getting my head around it. Basically, what I'm looking to do is the following: 1) Extract the name of the active worksheet; 2) Open a workbook with the same name as this...
  8. G

    SO MANY IFs

    if you didn't want the helper column you could always do '=sumproduct($A3:$F3,{0.05,0.2,0.05,0.15,0.05,0.5})
  9. G

    VBA help - index and named ranges (also colours)

    ooh, good solution, this would make it way easier to expand and add conditions when necessary too. Would I be better served using RGB over colour index?
  10. G

    VBA help - index and named ranges (also colours)

    yeah, it's replacing conditional formatting so I need to use the check. Basically what I'm looking to do is have the macro look at the named range Key and take the format form those colours. I'll need to change the cell references to C123 through C127 to references to Key. Does that make sense?
  11. G

    VBA help - index and named ranges (also colours)

    Right now I'm using it to fill cells in order by cycling through a range of values, so it's an element in an array, is there a way of forcing it to behave like it's an array too? For clarity this is the code I'm using: Public Sub Worksheet_Change(ByVal Target As Range) Dim MyRange As Range...
  12. G

    VBA help - index and named ranges (also colours)

    I'm having a little bit of an issue combining these to copy the format from the indexed cell. Thanks for this dude :).
  13. G

    VBA help - index and named ranges (also colours)

    Cheers Luke. So I'm clear, does WorksheetFunction basically allow you to use standard excel commands? is there a way of working Q2 without using ActiveCell? Say for example I wanted to fill Cell A1 with the same colour as B1, how would I go about that?
  14. G

    VBA help - index and named ranges (also colours)

    Hi all, I'm still learning a lot about VBA, so I'm sure this first one is a relatively simple question: I'm after a function that does exactly the same thing as INDEX when used in a spreadsheet, specifically when working with a named range. The second question I think is a little more...
  15. G

    for each cell in range - work by row or by column

    Cheers Narayank, it's always best to have someone show you how to find something out rather than hold your hand. Useful thing to know as a function too.
  16. G

    for each cell in range - work by row or by column

    Hi all, in VBA, the statement For Each Cell In Range is used quite a bit. My question is, does this function cycle through by row or by column, i.e. for the range A1:B3 would it work through in the order a1, a2, a3, b1, b2, b3 or a1, b1, a2, b2, a3, b3 I'm sure this is something that...
  17. G

    Volatile or non Volatile, that is the question

    Thanks Luke. One small issue with your solution though: won't that throw up an error if you only have text/only have numbers in your array? That means this formula has to become...
  18. G

    Volatile or non Volatile, that is the question

    Hi again (figured it was better to revive this thread than start a new one). I've been looking over the link you sent Hui (thanks for that by the way, I'm pretty sure I get Index now), and something about it is bothering me a little. The way the author uses to set up a dynamic range is...
  19. G

    Volatile or non Volatile, that is the question

    Cheers, knew I could count on you guys for a good answer :).
  20. G

    Volatile or non Volatile, that is the question

    Hi All, Not a specific question really, but I've been using OFFSET for my lookups for a while, and I'm aware that for resource efficiency I should be using INDEX. My issue with INDEX is that it requires me to know exactly how large my data set is (unless I'm not understanding it properly -...
  21. G

    Averaging data with different weightings

    =sumproduct(SCORERANGE,{weightings in order, seperated by commas}) I think this is what you're after?
  22. G

    Random Team Selector - Nearly there need last piece of puzzle......

    To explain what's going on, first here's the VBA code (as I said, might be sloppy but it works): Dim Teams As Range 'We are saying here that we're going to be making use of a variable "Teams", and it's a Range of cells. Private Sub CommandButton1_Click() 'This is the...
  23. G

    Sampling excel 2003

    Cheers Luke, wouldn't have thought of that, it'll work perfectly.
Back
Top