+ Reply to Thread
Results 1 to 5 of 5

Somproduct

  1. #1
    Registered User
    Join Date
    12-01-2006
    Posts
    99

    Somproduct

    Hello
    how can i change this formula so it also looks for the year?
    =SOMPRODUCT(--(TEKST(Overige!$B$2:$B$1445;"mmmm")=A58))

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    "mmmm"
    Returns the month. To return a year as well you can use

    "mmmmyy"
    e.g March08.
    "mmmm-yy"
    e.g March-08.
    "mmmmyyyy"
    e.g March2008.

    etc

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    12-01-2006
    Posts
    99
    thank you


    Is this possible with
    cel A1 contains a date lets says 01-02-08 (dd-mm-yy)
    B1 contains 05-03-08

    I wan ta formule that only looks between those dates

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Try

    =SOMPRODUCT((Overige!$B$2:$B$1445>=A1)*(Overige!$B$2:$B$1445<=B1))

  5. #5
    Registered User
    Join Date
    12-01-2006
    Posts
    99

    Thumbs up

    Thank you and sorry for my late response i am going to try those forumlas out thanks

+ 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