+ Reply to Thread
Results 1 to 17 of 17

Need function to compare cells/ranges

  1. #1
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Need function to compare cells/ranges

    Hello Everyone ,

    i have below requirement can any one help me please,
    Sorry if related thread is already present , i have tried to find it out.

    Requirement:


    i have a sheet like below


    name j1 b1 j2 b2 result
    a 09-06-2005 10-05-1985 09-04-2003 10-04-1984
    r 09-04-2003 10-04-1984 09-06-2005 10-05-1985


    i have to compere j1 b1 with j2 b2 and if its matching then display corresponding name column value to result column.

    like in above result should be

    result
    r
    a




    Thanks
    Arun
    Last edited by Paul; 04-04-2012 at 12:12 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Need function to compare cells/ranges

    Hi
    what the date format?
    dd/mm/yyyy?
    Last edited by Paul; 04-04-2012 at 12:14 AM.

  3. #3
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Hi,

    Yes, it's in dd/mm/yyyy
    Last edited by Paul; 04-04-2012 at 12:14 AM.

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Need function to compare cells/ranges

    Hi
    what is the comparison criteria?
    You hav not specified that...
    Last edited by Paul; 04-04-2012 at 12:15 AM.

  5. #5
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Hi jraj,

    i have posted it but not sure how it got deleted.


    below is what i want

    compare each row j1 and b1 to all values of j2 and b2, wherever it is matching that corresponding name value i have to put in result column


    name j1 b1 j2 b2 result
    a 09-06-2005 10-05-1985 09-04-2003 10-04-1984 r
    r 09-04-2003 10-04-1984 09-06-2005 10-05-1985 a


    thanks
    Last edited by Paul; 04-04-2012 at 12:15 AM.

  6. #6
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Need function to compare cells/ranges

    Hi again
    Why don't you upload your excel file with data? Also specify the conditions for comparing the values that you had specified previously...
    Last edited by Paul; 04-04-2012 at 12:16 AM.

  7. #7
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Need function to compare cells/ranges

    Ok
    You mean j1=j2 and b1 =b2 then put the col A value into Result col right?
    Last edited by Paul; 04-04-2012 at 12:16 AM.

  8. #8
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Need function to compare cells/ranges

    "Identify matching dates"
    Should do it, but please post a workbook or representative portion so we can see what you are doing.
    Last edited by Paul; 04-04-2012 at 12:17 AM.
    If I helped, please don't forget to add to my reputation. (click on the star below the post)

    If the problem is solved, please: Select Thread Tools (on top of your 1st post) -> Mark this thread as Solved.

    Failure is not falling down but refusing to get up.

  9. #9
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Hi jraj

    yeah
    Last edited by Paul; 04-04-2012 at 12:17 AM.

  10. #10
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Hello Everyone,

    help me out please


    thanks
    arun

  11. #11
    Forum Contributor Russell Dawson's Avatar
    Join Date
    03-01-2012
    Location
    Yorkshire, England
    MS-Off Ver
    2007
    Posts
    608

    Re: Need function to compare cells/ranges

    Hi Arun,

    You really do need to take notice of the rules. The easiest way people can understand what your problem is by you posting a workbook that clearly demonstrates what your intentions are.

    The rules state:

    Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    Regards

    Russell

  12. #12
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Hello Everyone ,

    I have attached the workbook

    Please help me out now
    Attached Files Attached Files
    Last edited by arun22; 04-06-2012 at 01:29 AM.

  13. #13
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Need function to compare cells/ranges

    Hi
    What do you want to do?

  14. #14
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    HI

    below is what i want

    compare each row B column values to D Column value and C column value to E column wherever it is matching that corresponding name value i have to put in result column

    in my sheet result should be

    rajesh
    Arun

  15. #15
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Need function to compare cells/ranges

    see if this helps. i have inserted two helper columns for ease of calculation. the sequence of concatenation is key in order for this solution to work.

  16. #16
    Registered User
    Join Date
    04-03-2012
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need function to compare cells/ranges

    Quote Originally Posted by icestationzbra View Post
    see if this helps. i have inserted two helper columns for ease of calculation. the sequence of concatenation is key in order for this solution to work.
    Hi,

    Thanks a lot but how do i will run on a sheet which has more then 2k rows?

    the date1 and date2 column how i will generate for every row ?

  17. #17
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Need function to compare cells/ranges

    take the attached file version 02. i have moved the new DATE columns to the end, and i have locked the cells in columns F, G, H with password arun22.

    take your data and paste them over columns A, B, C, D, E. i have copied and pasted all the formulae from F, G, H over 4000 rows. as you paste your data, the formulae in F, G, H should work automatically to give you the correct results.

    the sequence of columns is KEY. pay attention to that while copy-paste. i would recommend not unlocking the file until your copy-paste operation is over.

    if there is any confusion or issue, revert here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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