+ Reply to Thread
Results 1 to 5 of 5

comparing values of cells

  1. #1
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    comparing values of cells

    I have an excel sheet with 3 columns : Date , Value A , Value B .
    I need to compare values A and B . If A>B I need the date to be printed . So at the end I can have a list in the same sheet or another sheet with all dates where the value of A > value of B .

    Please help

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: comparing values of cells

    attach a sample file with expected result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Registered User
    Join Date
    09-25-2014
    Location
    alex
    MS-Off Ver
    2010
    Posts
    17

    Re: comparing values of cells

    This is a sample file of input and required output
    Attached Files Attached Files

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: comparing values of cells

    f3=INDEX($A:$A,SMALL(INDEX(($B$1:$B$24<=$C$1:$C$24)*10^10+ROW($B$1:$B$24),0),ROWS(F$3:F3)))
    Please Login or Register  to view this content.
    Try this and copy towards down

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: comparing values of cells

    This will give the results that you are looking for. The results are in the order of the original data. Enter where you want the results to start and fill down.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    If by chance that formula gives you problems this should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Comparing multiple cells and values
    By hutchgeo4 in forum Excel General
    Replies: 5
    Last Post: 06-18-2012, 02:23 PM
  2. comparing two cells that are not number values
    By cheddarthief in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2011, 12:01 PM
  3. Replies: 2
    Last Post: 08-12-2010, 05:54 AM
  4. Comparing values in Cells
    By ktsugihara in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2008, 05:18 PM
  5. Comparing values in cells between three worksheets
    By SlipperyPete in forum Excel General
    Replies: 2
    Last Post: 12-10-2007, 04:29 PM
  6. [SOLVED] Comparing Values from 2 cells
    By Reggie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2005, 03:55 PM
  7. Iterating through cells, comparing values
    By kingpin2502 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2005, 02:05 PM
  8. [SOLVED] Comparing values in non contigious cells
    By thePriest in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-03-2005, 02:07 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