+ Reply to Thread
Results 1 to 3 of 3

Formula with drop downs

  1. #1
    Registered User
    Join Date
    08-20-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Formula with drop downs

    I am trying to write my first VBA code in many many years. What I am attempting to do is have the dollar amount in column A multiplied by a preset drop down (term lengths) in column B and the sum of the dollar amount multiplied by the % equal to the drop down menu in column C (I hope that makes sense).

    Example (sorry for the lines, I couldn't figure out the spacing):
    A_______B_________C
    $300____M2M_____$30.00
    $450_____24______$292.50

    I'm not sure how to write this because I would like it to automatically pre-populate column C but here is what I did (and actually I'm getting an error message about the second ActiveCell.Offset):


    Please Login or Register  to view this content.
    Any help would be appreciated.

    Thanks!

    Moderators note: code tags added for you - this time
    Last edited by FDibbins; 08-21-2013 at 12:49 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Formula with drop downs

    Hi and welcome to the forum

    1st, please use code tags when posting VBA code, as per Rule 3 of our Forum

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    2nd if you are running a simple calc based on a drop down/s, you dont need VBA for this, a refular formula will do it for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-20-2013
    Location
    CA, USA
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Formula with drop downs

    The infamous rule #3! I'll remember that for next time.

    Thanks for the info, I originally looked at the formulas but couldn't figure out any that fit. I'm not very familiar with drop downs and formulas so VBA seemed like a better solution. I'll circle around and look back at the formulas. I appreciate the help!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Count Formula With Drop Downs
    By Zoe Lees in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-05-2012, 11:51 AM
  2. Replies: 2
    Last Post: 07-10-2012, 05:17 AM
  3. Auto-update initial drop-down selection based on previous drop-downs
    By thornomad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-16-2010, 09:55 AM
  4. Use Drop Downs to Populate Other Drop Downs
    By fbombs in forum Excel General
    Replies: 2
    Last Post: 09-23-2009, 03:17 PM
  5. Cross-referenced drop-down menu (nested drop-downs?)
    By creativeops in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-22-2005, 01:45 PM

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