+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : sets of data, if dates are equal use data from cell

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    Tromsų, Norway
    MS-Off Ver
    Excel 2007
    Posts
    16

    sets of data, if dates are equal use data from cell

    Hi.

    I have a problem that might be an easy fix:

    So I have two sets of data, one with time and one with temperature. In column A the dates are listed, in column B the time is listed.

    In another sheet I have the same setup. Column A has the dates, and in column B I have temperature.

    Now I want a formula that compares dates from both sheets and adds the temperature in the first sheet if the dates are equal:

    First sheet:
    01.01.2012 20
    05.01.2012 40

    Second sheet:
    01.01.2012 20
    02.01.2012 15
    03.01.2012 10
    05.01.2012 30

    I want the result like:
    First sheet:
    01.01.2012 20 20
    05.01.2012 40 30

    The problem I am having is that not all the dates are recorded in the two sheets. So I need a formula that compares cell A1 with the whole column A on sheet two and adds the value in the row.

    In advance, thank you so much

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: sets of data, if dates are equal use data from cell

    Hi erter.

    If i get your point, then in Sheet1C1, put this formula.

    =INDEX(Sheet2!$B$1:$B$4;MATCH(A1;Sheet2!$A$1:$A$4;0))

    Hope to helps you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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