• 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. Sam Mathai Chacko

    Formula Challenge 022 - Find the item with the largest sum in a list

    Well, I'll hope I can pay up for this hectare space some day, but I'll go with this mega formula...
  2. Sam Mathai Chacko

    Vlookup or VBA solution

    Can you confirm that only the asterisk (*) will be the extra character in your lookup table? Will everything else be exactly the same?
  3. Sam Mathai Chacko

    macro to send pdf file in outlook

    Sub SMC() 'Create an Outlook object and new mail message Set oApp = GetObject(,"Outlook.Application")'You must ensure that Outlook is open and logged in Set oMail = oApp.CreateItem(0) 'Set mail attributes (uncomment lines to enter attributes) ' In this example, only the attachment is being...
  4. Sam Mathai Chacko

    Vlookup or VBA solution

    When you say exact matching, does that mean you will have "Y-lease" and "Y*-lease" both listed in the sub-table? Can you post a workbook, with the expected output.
  5. Sam Mathai Chacko

    macro to send pdf file in outlook

    Not sure why you want to automatically open the PDF and go to outlook. Are you saying you want to 'attach' the PDF?
  6. Sam Mathai Chacko

    Vlookup or VBA solution

    What is your lookup table? If all the products are unique in the sub-table (look-up table), which is in $C$2:$D$12, you can use C15=VLOOKUP($B15,$C$2:$D$12,2,0)
  7. Sam Mathai Chacko

    How to return the sum of functions dynamically in excel

    Thanks Narayan. If that's the case, then I'd go with your and Hui's suggestion/thought.
  8. Sam Mathai Chacko

    How to return the sum of functions dynamically in excel

    Did you try this? Not sure if that's what you were looking for, but just in case.
  9. Sam Mathai Chacko

    Congratulations Hui on becoming an Excel MVP!

    Congratulations Hui.
  10. Sam Mathai Chacko

    How to return the sum of functions dynamically in excel

    You can do it this way. And keep on inserting rows (up to 100 rows in my example below, but you can increase that) =SUM(OFFSET(E7,,,MATCH("Scores",A7:INDIRECT("A106"),),))
  11. Sam Mathai Chacko

    How to return the sum of functions dynamically in excel

    Can't you use those individual functions in their corresponding rows, and the use a sum function like this? =SUM(E7:E9) Maybe I'm not understanding your question right.
  12. Sam Mathai Chacko

    Ribbon DatePicker Calendar Control For Excel 2007-2010

    'Callback for galCalendar onAction Sub galleryOnAction(control As IRibbonControl, id As String, index As Integer) 'This is where we pass the value of the selected date, on to the sheet 'Of course this will only pass value to the active cell. So if you've selected a range of cells, still...
  13. Sam Mathai Chacko

    Ribbon DatePicker Calendar Control For Excel 2007-2010

    Hi All Wasn't able to spend time on the forum over the last couple of weeks as I was busy with client visits at work, and had to focus attention there at work. Anyway, a good man, Neil Holder, an Excel enthusiast like most of us, has given a valuable insight about the Ribbon Date-picker I...
  14. Sam Mathai Chacko

    Rolling 12 Numbers Calculation

    Here's one way of doing it using array formulas. There must be a better formula, but just a bit lazy here :D =SUM(INDIRECT("A"&MATCH(12,COUNTIF(INDIRECT("A"&ROW($1:31)&":A"&ROW(A31)),"<>"),)&":A"&ROW(A31))) if you are on the 32nd row
  15. Sam Mathai Chacko

    Combining Multiple Macros

    Just to remind you, that the above code will only work if you've pasted the entire code in the respective sheet module. It is an event triggered procedure that is based on the class within which it is written (read supposed to be written), in your case, the sheet module.
  16. Sam Mathai Chacko

    Create Workbook from 2 Separate Queries

    A simple searching would have given you enough ideas. Did you try http://chandoo.org/wp/2010/02/19/excel-consolidate-data/ http://www.excelfox.com/forum/search.php?searchid=164615 also will give you a few methods, more specifically...
  17. Sam Mathai Chacko

    Counting number of sheets inbetween two other sheets?

    Abhi, Application.Volatile--the default parameter is True--makes the function volatile, ie, whenever there is a change in any cell in the sheet, the formula will automatically recalculate itself. On the other hand, if you do not use Application.Volatile in a user defined function such as the...
  18. Sam Mathai Chacko

    Counting number of sheets inbetween two other sheets?

    Here's another shorter version Function SMC(Optional p1 As String, Optional p2 As String) As Long Application.Volatile True With ThisWorkbook If p1 = "" Then p1 = .Sheets(1).Name If p2 = "" Then p2 = .Sheets(.Sheets.Count).Name SMC = Abs(.Sheets(p2).Index -...
  19. Sam Mathai Chacko

    Pasting conditinal formatted text to new file

    bobhc, format painter will bring in the conditional format also. OP didnt want that, but only the display color.
  20. Sam Mathai Chacko

    Counting number of sheets inbetween two other sheets?

    Cross-posted here http://www.ozgrid.com/forum/showthread.php?t=60398
  21. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    By the way, please used code tags while posting codes. It enhances readability.
  22. Sam Mathai Chacko

    Usuing custom Style in every sheet I open/create

    When you add a new style, Excel by default takes some values. The default value for Bold is False. So if you do not specify it, Excel will assume that you do not want to alter the default Bold (or Italics) features.
  23. Sam Mathai Chacko

    Counting number of sheets inbetween two other sheets?

    Hehe.... sometimes it looks ever so sophisticated for a moment, only to then turn up as quite stupid. Yes, much more elegant solution that.
  24. Sam Mathai Chacko

    Pasting conditinal formatted text to new file

    I doubt that simply copying the range over would work as you expect. The following link should work for displaying the interior color (but not other formats like font being bold etc). Be adviced that this will only work for Excel 2010 and above...
  25. Sam Mathai Chacko

    Counting number of sheets inbetween two other sheets?

    Many ways to do that. Here's one of them Sub SMC() Const strSheetStart As String = "Sheet3" Const strSheetEnd As String = "Sheet2" Dim sht As Object For Each sht In Sheets If lng Then lng = lng + 1 End If If sht.Name = strSheetStart Then...
Back
Top