+ Reply to Thread
Results 1 to 5 of 5

Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

  1. #1
    Registered User
    Join Date
    11-10-2015
    Location
    Baltimore, MD
    MS-Off Ver
    2010
    Posts
    5

    Lightbulb Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

    Hello

    I am making macro that calculates a formula.

    Formula suppose to be like that.

    50 * Log(((1+(1/n)*Sum)^-0.5)*100

    Please, help me to find mistakes.

    ==================================================

    Thank you everyone who contributed!
    Last edited by Invictus1; 11-22-2015 at 10:11 PM.

  2. #2
    Registered User
    Join Date
    11-18-2015
    Location
    Madrid
    MS-Off Ver
    2016
    Posts
    95

    Re: Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

    Hi, you can use the following code for the format:

    Please Login or Register  to view this content.
    excelbat.com: free Excel tools, macros...

  3. #3
    Registered User
    Join Date
    11-10-2015
    Location
    Baltimore, MD
    MS-Off Ver
    2010
    Posts
    5

    Re: Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

    Thank you! Now I get whole number. I put 0 instead of 0.00

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

    On Sheet 1 G17, the worksheet formula multiplies by 100 before 50*Log
    =50*LOG(((1+(1/$F$3)*G15)^-0.5)*100)



    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  5. #5
    Registered User
    Join Date
    11-10-2015
    Location
    Baltimore, MD
    MS-Off Ver
    2010
    Posts
    5

    Re: Please, help me with the code for Similarity Factor Calc. My code gives wrong number.

    Thank you very much, everybody!

    Everything works.

    Thank you again.
    Last edited by JBeaucaire; 11-23-2015 at 01:30 AM.

+ 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. [SOLVED] can i get code for sum of cells have alpha numeric value and other multiple factor
    By thahirkv in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-24-2015, 05:04 AM
  2. [SOLVED] Trigger code when I calc
    By aresquare1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2015, 08:04 AM
  3. what is wrong with this code- error from vba code
    By punna111 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-14-2013, 03:14 PM
  4. VBA code to turn off auto calc during a click and hold of a scrollbar
    By aallen1095 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-30-2012, 01:19 PM
  5. Code for email alerts from excel isn't working, wrong code possibly?
    By jessthorogood in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2012, 01:45 AM
  6. Wrong line of code banned me out and can't access vba code...
    By albertc in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-14-2012, 02:41 PM
  7. Code error “wrong number of arguments or invalid property assignment”
    By hattrick_123a in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2011, 06:16 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