+ Reply to Thread
Results 1 to 11 of 11

How to Find, compare and retrieve values ​​from different columns?

  1. #1
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    How to Find, compare and retrieve values ​​from different columns?

    I want to compare if a value is higher or lower after a number of tests.
    If the person with a specefikt number (1a) test 5 times I want to be able to find and see if the result is higher or lower and at what stage.

    For example if the person 1b lowers its earnings from time 3 and 4 (55 to 53),I want to be able to easily find it.

    Sample.xlsx

    Best regareds

    Anders

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to Find, compare and retrieve values ​​from different columns?

    You can use conditional formatting (See example) Selecting A2:C9, Conditional Formatting>New Rule>Use Formula

    =AND($A2=$A1, $C2< $C1)
    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How to Find, compare and retrieve values ​​from different columns?

    Like this?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: How to Find, compare and retrieve values ​​from different columns?

    ChemistB's formula was better. Ignore mine and (if you want that extra column) use this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Find, compare and retrieve values ​​from different columns?

    Thank you for your prompt response and fine solution.

    I was not clear enough with what I want.
    I want to find the number of results reductions between what occasions these are.
    I have on sheet 2 (called "results") tried to illustrate what I want, it can be several "teachers" and hundreds of persons during several stages, probably 20 at most but the majority between 3-8 stages.

    I want to see how many persons "at" sees and between which "stages" most of them increases or reductions occur and if possible in an easy way "follow" a person and see when he increase or reduct.

    I hope I have been a bit clearer apologize for my past carelessness.

    Sincerely

    Anders

    sample2.xlsx

  6. #6
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Find, compare and retrieve values ​​from different columns?

    Thank you for your quick respons, i missed some information of what i want but i posted that in my other reply to ChemistB, maybe you can help me out again.
    Thank you.

    Best regards

    Anders

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to Find, compare and retrieve values ​​from different columns?

    See my table set up (you can do it without the row 9 but this makes it easier

    In D10 copied across and down

    =SUMPRODUCT(--('All test'!$D$2:$D$16<'All test'!$D$1:$D$15), --('All test'!$A$2:$A$16=$C10), --('All test'!$C$2:$C$16=D$9))
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Find, compare and retrieve values ​​from different columns?

    Thank you very much, nice one but I donīt really understand how it works but i will try it out and see if it is what i need.

    I will get back as soon as possible.

    Best regards

    Anders

  9. #9
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Find, compare and retrieve values ​​from different columns?

    Thanks again for your patience and quick responses.

    I've tried to understand your formula and also to get it to work with my data sheets, I get neither to work and I understand that it is my poor knowledge that causes it.

    I have again attached the data I need to work with and again tried to illustrate what I want, and maybe it still is your formula I need but I do not understand how to apply it.

    If possible, I would also like to be able to pick up when, for example, the response to test 1 is lower than test 2 etc, see exemple in sample3, attachment.

    I was hoping to figure it out myself by my earlier example of how I could solve my problem but now realize that I should have been using my actual problem.

    Best regards

    Anders

    Sample3.xlsx

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to Find, compare and retrieve values ​​from different columns?

    Hmmm, my formula still works but first you'd need to sort by teacher then session. and Session 1's are automatically 0

    Explanation:

    =SUMPRODUCT(--(Results!$I$2:$I$10< Results!$I$1:$I$9), --(Results!$A$2:$A$10=$B4), --(Results!$D$2:$D$10=D$3))
    with At in B4 and Session 2 in D3

    --(Results!$I$2:$I$10< Results!$I$1:$I$9) compares every value from i2 to i10 with the value before it (i1 to i9) If less than the value before it, it gives a 1, otherwise 0

    --(Results!$A$2:$A$10=$B4) gives a 1 if the value in A2 to A10 is "At"

    --(Results!$D$2:$D$10=D$3) gives a 1 if the value in D2 to D10 is "Session 2"

    Good explanation of SUMPRODUCT in general
    http://chandoo.org/wp/2009/11/10/exc...oduct-formula/
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    09-23-2012
    Location
    Stockholm
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: How to Find, compare and retrieve values ​​from different columns?

    Thank you again,

    Close now, so I sort first among all my data, first sort by the teacher and then by session for it to become correct?

    Thanks for the explanation and for the link, I will do my best to understand and use the fomula, it seems to be a usefull one.

    Is it possible to sort and see if it is the same person who lower himself between session 1 and 2 for and then lower himself again between session 2and 3 for example?

    As it is right know I can see how many person it Is that lower themself between Two sessions but i dont know if the specific person lower his results the next time or if the person makes a change to a higher score then the session before.

    Thanks a lot for your time and knowledge.

    Best regards

    Anders

    Sample31.xlsx

+ 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] Find different values ​​in different columns
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-01-2014, 09:17 AM
  2. compare values in one column, based on the values ​​in the second
    By young_86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-20-2013, 10:16 AM
  3. Replies: 7
    Last Post: 11-23-2012, 08:40 AM
  4. [SOLVED] VBA to sum values ​​based on the values ​​in column
    By young_86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2012, 11:49 AM
  5. Replies: 5
    Last Post: 08-10-2011, 08:51 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