+ Reply to Thread
Results 1 to 5 of 5

Macro for repeat with if statement

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    DE
    MS-Off Ver
    Excel 2003
    Posts
    38

    Macro for repeat with if statement

    Hi all,

    My problem is that I'll like to have a macro which can take one number which are given by a specific country, month and year and then divide that number with another number for the same country, month and year (the denominator are suppose to by divided further by 12 only due to a yearly frequency). Then the macro should continue until there isn't any conutry left.

    I've attach the example in order to try to simplify what I'm after... In sheet 3 the formula and outlook are given as I would like to have the macro to do.

    Thanks in advance
    Attached Files Attached Files
    Last edited by Jabj; 10-20-2012 at 08:19 AM.

  2. #2
    Registered User
    Join Date
    09-26-2011
    Location
    DE
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Macro for repeat with if statement

    I appreciate if anyone have a suggestion

  3. #3
    Registered User
    Join Date
    09-26-2011
    Location
    DE
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Macro for repeat with if statement

    Anyone who are able to help?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Macro for repeat with if statement

    Your example already sets this up to use formulas. Why do you need to use macros?
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    09-26-2011
    Location
    DE
    MS-Off Ver
    Excel 2003
    Posts
    38

    Re: Macro for repeat with if statement

    I know but let's say I got 15 different countries then it would be pleasant to have a macro which took into account the number of countries... If you follow ?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1