+ Reply to Thread
Results 1 to 3 of 3

Calculating Values for a specific cell

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Calculating Values for a specific cell

    Hey Everyone,

    I am new to this community as I just joined to ask this question as I cannot seem to figure it out myself and I am most certain that I am missing something somewhere. The extent of my knowledge for Microsoft Excel is only College level (Took a computer class course while going to college as it was required [it only taught the basic functions of Microsoft's Excel, Word, Power Point, and Access]). This is not to say that I have not been messing with Excel and trying to learn its many variations on my own (as I have been able to thus far) without the need of asking, but as I enjoyed Excel the most while I was learning about it, and I kept finding myself being drawn towards it time and time again, I am looking to further explore the entirety of Excel and all that she has to offer.

    So onto what I am needing help on. I am trying to write a "script" that will allow me to take the value input into one cell, find the appropriate IF range, and return a value based on the formula I set for that number range and designate it to a specific cell of my choosing.

    Here is what I have so far and it kind of works, but at the same time it does not. What it does is places the same value of the cell I am wanting it to pull the value from and placing it (without it changing) and placing it in the cell that I want the new value to be placed in.

    Please Login or Register  to view this content.
    Right now I am using the specific values in the code so that way I can make sure that they are turning out the way that I want, but in the future (once this is working), I am going to replace the values of this long-winded code to make it smaller and "cleaner" as the values assigned right now are just temporary and subject to change in the future.

    I apologize for any information that is not needed, or that I might have left out, however, I appreciate all those that respond (both positive and negative).

    Thanks in advance to those that respond,
    Kingmen30264

    P.S. If any other information is needed, please let me know and I will respond with the information ASAP.

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: Calculating Values for a specific cell

    Hi and welcome to the forum,
    Here's one suggestion. This is a UDF (user define function).

    In value is in A1, in B1 type =Kingmen(A1) and you'll get the result.
    Rename the function if you want...
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    08-12-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Calculating Values for a specific cell

    Cool, thanks for the help.


    [SOLVED]
    One other question that I have is that when I make the macro run, how can I keep it running continuously instead of it working that one time and I have to re-enable the macro?

    [Solution]
    I figured out how to call it when needed instead of it running and then ending one time.

    For those that need to know the solution to this, then I found a great write-up on it here
    Last edited by Kingmen30264; 08-12-2013 at 07:57 PM.

+ 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. Calculating difference based on specific cell values
    By thelegazy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-24-2013, 05:36 PM
  2. Replies: 7
    Last Post: 07-13-2012, 06:20 AM
  3. Excluding Specific Values in Calculating Max
    By kegiannone in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2010, 07:23 PM
  4. Calculating the amount of consecutive values of a specific type
    By Vlad111 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2008, 11:56 PM
  5. CALCULATING A FORMULA TO USE A SPECIFIC CELL'S VALUES
    By PaulH-Oz in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 06:55 PM

Tags for this Thread

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