+ Reply to Thread
Results 1 to 8 of 8

Percentage of Distance Between Two Numbers

  1. #1
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    Percentage of Distance Between Two Numbers

    Hello
    I need formula for calculate percentage distance between two number in logarithmic:
    A1:200 - A2:300. in aritmethic result is 50%, how about logarithmic?
    &
    A1:300 - A2:200 . in arimethic result is 33%, how about logarithmic?

    I need formula in logarithmic

    Thank you very much
    Last edited by soubasa; 11-10-2022 at 10:58 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Percentage of Distance Between Two Numbers

    Administrative Note:

    You should know the forum rules by now ...


    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. No help to be offered until you provide a link or, for members with fewer than 10 posts, a comment telling us where else you have posted this query.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    Re: Percentage of Distance Between Two Numbers

    https://www.mrexcel.com/board/thread...tance.1221418/

    Hello, I reply my post link to that address, is that enough?
    in the previous 36 hours I could not able post my question in the excelforum.com and I recived "HTTP ERROR 500" when I wanted post my quetion

    I live in IRAN and we have the most severe restrictions on the use of the Internet

    please unblock my post

    Thank you very much

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,362

    Re: Percentage of Distance Between Two Numbers

    Thank you.

    There are instructions at the top of the page explaining how to attach your sample workbook. Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.

  5. #5
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Percentage of Distance Between Two Numbers

    Quote Originally Posted by soubasa View Post
    I live in IRAN and we have the most severe restrictions on the use of the Internet
    xxxxxxxxxx

    In deference to your access difficulty, we can use the additional information that you crossposted to improve our understanding. You posted the following examples.

    To paraphrase: You have A1=100 and B1=150, and you want a formula in C1 to ``calculate percentage distance between two number in logarithmic``.

    Additionally, you want the same calculation when A1=150 and B1=100.

    In stock analysis terms, we speak of the percentage "return" and "log return". I think that is what you want.

    And you described the first example as "bullish". By that, I think you mean declining valuations.

    Thus, the stock value changed from the earlier valuation of 150 (B1) to the later valuation of 100 (A1).

    For both examples, the percentage return is =A1/B1 - 1 , formatted as Percentage.

    The log return is =LOG(A1/B1) or =LN(A1/B1), depending on whether you want the base-10 or "natural" log. Format as General or Number, not Percentage.

    It should not matter, for stock analysis purposes. But typically, the natural log is used.

    Thus, the results are as follows.

    retn and log retn.jpg
    Last edited by FDibbins; 11-08-2022 at 01:37 AM. Reason: Please keep political comments and opinions out of the forum

  6. #6
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    Re: Percentage of Distance Between Two Numbers

    Thank you for your sympathy
    You are right, I want it for Stock Market also for Forex
    percentage "return" is Fibonacci Retracement
    my question is for Fibonacci Projection "same direction waves", as you know this useful for compare of 2 waves.
    please imagin Fibonacci Projection for 5 waves. how can you do that? "compare 5 waves"
    I want formula for Blue wave in attach file "A-C-E-G-I" in Bullish and Bearish
    in aritmethic scale I can use of difference value but in logarithmic I need percentage difference
    it will be great if you make formula for calculate only wave A. how much price moved from 100 to 150 in logarithmic percentage?
    it is Bullish and in the next step formula need to calculate Bearish include of it.

    Thank you very much
    Attached Files Attached Files

  7. #7
    Valued Forum Contributor
    Join Date
    07-13-2021
    Location
    California, USA
    MS-Off Ver
    2010
    Posts
    513

    Re: Percentage of Distance Between Two Numbers

    Quote Originally Posted by soubasa View Post
    my question is for Fibonacci Projection
    I am afraid that I cannot help you further, since I am not familiar with the concept. Good luck!

  8. #8
    Forum Contributor
    Join Date
    04-16-2020
    Location
    Tehran, Iran
    MS-Off Ver
    2019 v2306
    Posts
    145

    Re: Percentage of Distance Between Two Numbers

    Thank you for your time
    Maybe I could not explain my question clearly
    with the below formula my question solved :

    =ABS(A2-A1)/A1*100

+ 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. Replies: 5
    Last Post: 02-25-2021, 08:29 AM
  2. Distance between 2 locations with distance traveled in each country.
    By Denis1994 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2020, 08:30 AM
  3. Replies: 5
    Last Post: 04-15-2020, 01:31 AM
  4. Calculating total road distance and duration with google distance matrixes api
    By musta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-26-2019, 07:21 AM
  5. hello, please, filter threesomes with the same * distance between numbers.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-08-2018, 09:09 AM
  6. [SOLVED] Google Distance Matrix API - Distance and Time
    By rtcwlomax in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 08:42 PM
  7. [SOLVED] If Then for determining distance between 2 numbers
    By eas84 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2012, 11:53 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