+ Reply to Thread
Results 1 to 8 of 8

variable value

  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    9

    variable value

    Hello.
    I need the v (variable) in the following formula example B1=(v-A1) to get different values defined by me.
    The same formula will be applied to B2=(v-A2), B3=(v-A3),... up to B10=(v-A10).
    V will have max 1 decimal place and will range from 0.1 up to 99.9
    Can somebody please explain how to do this?

    Further, I need the positive or negative sign to display after formula execution.
    Example: A1=24 and v=23.7 B1=(23.7-24)=-0.3 or A2=15.5 and v=16.5 B2=(16.5-15.5)=+1


    Please help considering I don't know how to do much more than add,subtract,multiply or divide in Excel.
    Thank you

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: variable value

    Select the cell you wish to have the value v. In the Names box (left of the formula bar, enter "v" (sans quotes).

    In B1 and copy down, =v-A1

    Format column B as +General;-General;0
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-26-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: variable value

    thanks shg. But where and how should i input values that v needs to acquire?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988

    Re: variable value

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  5. #5
    Registered User
    Join Date
    03-26-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: variable value

    Sorry for missing the rule. Here is the link to same post in other forum:
    http://www.mrexcel.com/forum/showthread.php?t=380767

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: variable value

    You put the value of v in the cell you named in the first step.

  7. #7
    Registered User
    Join Date
    03-26-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: variable value

    Tried the format you suggested shg and it works great. Just what I need, nice and simple.
    However I don't understand what you mean on how to put the value of V, probably because I did not explained it right. v value is a variable and so will change in B1, B2, B3 up to B10. Maybe I should name my v as v1, v2, v3,...up to v10.
    What I did not mention is that I intend to dictate with speech recognition the v1, v2, v3... values.
    What I don't know is how my v1...v10 variables in column B will GET or acquire the values dictated. To make it simpler we can consider input to be typed. I will worry about the dictated input later.

    I imagine I must make a corresponding range of cells in another area of the worksheet that will "link" the dictated input values to the v's in my B column.
    If this is the way than a separate worksheet for input and link those values to the 1st worksheet with the formulas would be better because I described a simple example of my needs. In fact 1 full A4 worksheet will be used with different columns and same transposed formula.

    Unless there is a better way to dictate directly values to the v's in the formulas.
    darman

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: variable value

    Then put the v values in column C and change the formula in B1 to =C1-A1

+ 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