+ Reply to Thread
Results 1 to 4 of 4

Search for a value in column A and return the vaule/values in column B to column C

  1. #1
    minismood
    Guest

    Search for a value in column A and return the vaule/values in column B to column C

    Hello!

    This is what my worksheet looks like:

    Column A (names of people):
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Persson, Palle
    Persson, Palle
    Persson, Palle
    Persson, Palle
    Persson, Palle
    and so forth...

    Column B (dates):
    2005-06-15
    2005-07-13
    2005-08-15
    2005-05-24
    and so forth...

    I want to know if there=B4s a formula (of course there is! where I
    can search for a value (date) in column B that is older then let say
    2005-08-01 and find out how many dates are older than 2005-08-01 for
    i=2Ee Persson, Palle.

    I hope I=B4ve made myself clear.

    Ps. The date, i.e. 2005-08-01, is how me write it in Sweden.


  2. #2
    Roger Govier
    Guest

    Re: Search for a value in column A and return the vaule/values in column B to column C

    Hi

    One way
    =SUMPRODUCT(--($A$2:$A$100="Persson,
    Palle"),--($B$2:$B$100>DATE(2005,8,1)))

    better still put the name required in say C1 and Date required in D1
    then
    =SUMPRODUCT(--($A$2:$A$100=C1),--($B$2:$B$100>D1))


    --
    Regards

    Roger Govier


    "minismood" <[email protected]> wrote in message
    news:[email protected]...
    Hello!

    This is what my worksheet looks like:

    Column A (names of people):
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Persson, Palle
    Persson, Palle
    Persson, Palle
    Persson, Palle
    Persson, Palle
    and so forth...

    Column B (dates):
    2005-06-15
    2005-07-13
    2005-08-15
    2005-05-24
    and so forth...

    I want to know if there´s a formula (of course there is! where I
    can search for a value (date) in column B that is older then let say
    2005-08-01 and find out how many dates are older than 2005-08-01 for
    i.e Persson, Palle.

    I hope I´ve made myself clear.

    Ps. The date, i.e. 2005-08-01, is how me write it in Sweden.



  3. #3
    R.VENKATARAMAN
    Guest

    Re: Search for a value in column A and return the vaule/values in column B to column C

    the names are in A1 to A10 and dates are in B1 to B10(i have added dates)

    now in an empty cell try this formula

    =SUMPRODUCT(($B$1:$B$10<DATEVALUE("8/1/2005"))*($A$1:$A$10=A10))

    a10 is having the name "Persson, Palle"


    "minismood" <[email protected]> wrote in message
    news:[email protected]...
    Hello!

    This is what my worksheet looks like:

    Column A (names of people):
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, Anna
    Eriksson, AnnaPersson, Palle

    Persson, Palle
    Persson, Palle
    Persson, Palle
    Persson, Palle
    and so forth...

    Column B (dates):
    2005-06-15
    2005-07-13
    2005-08-15
    2005-05-24
    and so forth...

    I want to know if there´s a formula (of course there is! where I
    can search for a value (date) in column B that is older then let say
    2005-08-01 and find out how many dates are older than 2005-08-01 for
    i.e Persson, Palle.

    I hope I´ve made myself clear.

    Ps. The date, i.e. 2005-08-01, is how me write it in Sweden.



  4. #4
    minismood
    Guest

    Re: Search for a value in column A and return the vaule/values in column B to column C

    Thanks you very much, bote of you!


+ 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