+ Reply to Thread
Results 1 to 4 of 4

comparing means by means of Least Significant Differences (LSD) method

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Tehran, Iran
    MS-Off Ver
    Excel 2007
    Posts
    6

    comparing means by means of Least Significant Differences (LSD) method

    Hi;

    Actually I am not sure if this question is related with some macro expert in excel forum. In this table Values of IDs compare with ID_2. First the differences between ID_2 and other IDs were calculated. Then these "differences" are compared with the 2 corresponding values (LSDs). If the difference is less than LSD(0.05) an greater than LSD(.01) then a star inserted on related V as superscript. If the "difference is less than lsd(.01) then 2 stars will insert. Can we do them in excel for large tables by means of a macro?

    Now take a look at the attached excel file:
    1. If the value of a cell in DIFF columns is greater than its correspondent lsd(0.05) then no action.
    2. If the value of a cell in DIFF columns is less than the LSD(0.05) and greater than LSD(0.01) then insert a star on its correspondent v as a super script
    3. If the value of a cell in DIFF columns is less than the LSD(0.01 then insert two stars on its correspondent v as a super script
    The DIFF columns show the values of difference of individuals with id_2 ie:
    In v1: abs((id_1)-(id_2))=1.96 etc.

    Cheers.......
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: comparing means by means of Least Significant Differences (LSD) method

    You get better help on your question if you add the desired (expected) result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-28-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: comparing means by means of Least Significant Differences (LSD) method

    Put this in Cell H2 and then copy down - is this roughly what you wanted? I think your description 1,2,3 is slightly muddled so I've assumed a couple of things.......
    =IF(D2<=$D$14,C2,IF(D2>=$D$15,C2&"**",C2&"*"))

    I also removed your own * from column C.

  4. #4
    Registered User
    Join Date
    10-23-2012
    Location
    Tehran, Iran
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: comparing means by means of Least Significant Differences (LSD) method

    Hi;

    Thank you Very much GooberTron For your very useful code. I did apply it for my table.

    Regards
    Ramim

+ 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. New job means new to Excel
    By Smudge.Smith in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 10-30-2012, 05:44 AM
  2. VBA help understanding what this means
    By confusedvba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2010, 12:31 PM
  3. Quick method of comparing two columns and highlight differences
    By PRodgers4284 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-04-2010, 11:03 AM
  4. what it means in a range (B:B)
    By starguy in forum Excel General
    Replies: 2
    Last Post: 04-12-2006, 08:10 AM
  5. replace ' and what it means
    By jonasa in forum Excel General
    Replies: 6
    Last Post: 02-20-2006, 08:35 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