+ Reply to Thread
Results 1 to 12 of 12

countif and Vlookup

  1. #1
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190

    countif and Vlookup

    Hi,

    Can any one help me,

    Data "L4:Q12" values are taking through countif command from Apr-06. if I select next month through dropdown menu ("L2") values are to be updated for that month.

    for more details see the attached file

    Kind Regards
    Sagar
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming all dates in column B will always show 1st of the relevant month, as per your example, try this formula in M5 copied across and down

    =SUMPRODUCT(--($B$3:$B$55=$L$2),--(INDEX($C$3:$J$55,0,MATCH($L5,$C$2:$J$2,0)) =M$4&"Y"))
    Last edited by daddylonglegs; 02-11-2007 at 12:36 PM.

  3. #3
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    hi

    Copied the same formula in "M5" cell and draged, but I am not getting the correct values (showing "0")

    Please help me

    Regards
    Sagar

  4. #4
    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
    It works

    Just remove the excess space from

    ))=M$4&"Y "))

    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 !!!

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Did you get it working? As VBA Noob says, a rogue space crept into my formula - sometimes happens when you post them. Here's an example with the working formula....
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Thanks Noob,

    I am very much intrested to know from where you people are solving the problems and few of them only replying to all the quiries, all are belongs to one team or operating from different places.

    Regards
    Sagar

  7. #7
    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
    Hi sagar,

    No teams. Just keen excel users I guess

    I'm from the uk and try to answer posts and learn some VBA on the way

    Still learning from DDL thou

    VBA Noob

  8. #8
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi Noob,

    the formula is working fine, but I am facing problem with different date formats, an average monthly i will be receiveing the data from all the users (atleast @6000 entries), in that tems are not following one consistant date format, though it is formated as "Dec-06" they are entering with different dates like 12/5/06 or 12/7/06

    is there any formula to change the the existing dates with month starting date (12/01/06) in the same cell.

    Regards
    Sagar

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

    =SUMPRODUCT(--($B$3:$B$55-DAY($B$3:$B$55)+1=$L$2),--(INDEX($C$3:$J$55,0,MATCH($L5,$C$2:$J$2,0)) =M$4&"Y"))

  10. #10
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi daddylonglegs,

    Thanks for your help,

    have good day
    bye
    sagar

  11. #11
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi daddylonglegs,

    One more help, in range L15:Q23 I want to coount how many 1LDY, 2LDY ......and till 8LDy are there for Apr, May and June month in the entire range (C3 : J55 range)

    thanks
    Sagar

  12. #12
    Forum Contributor
    Join Date
    10-24-2006
    Location
    INDIA
    MS-Off Ver
    office 2010
    Posts
    190
    Hi,

    Can any one help me

    regards
    sagar

+ 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