+ Reply to Thread
Results 1 to 7 of 7

mathematical function

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    3

    mathematical function

    How do I create a function or formula that a cell should automatically multiple every number i enter, for example i want every number that i enter into cell A1 should get multiplied by 12 if i enter number 5 in A1 then number 60 should appear in cell A1

  2. #2
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Re: mathematical function

    I do not believe you would be able to do such a thing, at least using a simple formula. It would give errors with a circular reference, for example, you are saying A1=A1*12. However, you can easily do B1 = A1*12, and B1 with result in 60 if you input 5 into A1. You can copy this down for as many cells below as you need, and if you need the results in Column A instead of B, you can just Ctrl+C, and "Paste Values" into Column A.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: mathematical function

    check this out..

    http://www.mrexcel.com/forum/excel-q...ply-value.html
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: mathematical function

    thanks but i want the same cell i enter the data should get multiplied

  5. #5
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: mathematical function

    oscar5, welcome to the forum.

    Quote Originally Posted by oscar5 View Post
    thanks but i want the same cell i enter the data should get multiplied
    Did you read the article that Ace provided the link to? That's what the OP over there wanted, also. I followed the instructions provided, and was able to achieve what you want to do.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  6. #6
    Registered User
    Join Date
    07-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: mathematical function

    i cant read that code

  7. #7
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: mathematical function

    Oscar, you don't need to be able to read much of the code to make use of it. On the attached workbook, I - disregarding what the code actually says - just copied the code and pasted it into a code module as outlined in the thread.

    If you right-click where it says "Sheet1" (the tabname for Sheet1) then click on "View Code", you should see the code (at least I hope you will - I haven't used Excel 2003 for a considerable amount of time now.) I think the line that concerns you most at the moment is the 3rd line down: "Const SET_VALUE As Long = 12 ". This is the set value that you want to multiply whatever number you type into cell A1 by. If you want to multiply, for example, by 10 instead of 12, simply replace this value (12) with 10.

    If you type 5 into cell A1, then press return/enter, you should see the value of A1 change to 60.

    Hope this helps.
    Attached Files Attached Files

+ 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. How to create a function of 2 mathematical formulas?
    By killwin98 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 05-09-2013, 04:54 PM
  2. Replies: 3
    Last Post: 03-05-2013, 03:42 PM
  3. Gammadist function - mathematical equation?
    By tmp2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-01-2012, 08:39 PM
  4. How to get this mathematical equation into a function?
    By Call in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-27-2010, 02:44 PM
  5. Make UDF for Mathematical Sum function
    By phonon in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-18-2007, 01:25 AM

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