+ Reply to Thread
Results 1 to 11 of 11

Formula to count number of Vlookup result without helper column

  1. #1
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Formula to count number of Vlookup result without helper column

    Hi, i have a list of Mark in Column A. Column C and D is the lookup table for the grade.
    I wan the total count of Grade A, B, C and D in Column G.

    I can easily achieve this by adding a Helper Column B and use countif, however, i want to skip using Column B. How can i achieve the end result without using helper column?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Formula to count number of Vlookup result without helper column

    Here's one way:

    Excel 2016 (Windows) 32 bit
    G
    3
    =COUNTIF($A$2:$A$14,">=800")
    4
    =COUNTIFS($A$2:$A$14,"<800",$A$2:$A$14,">=500")
    5
    =COUNTIFS($A$2:$A$14,"<500",$A$2:$A$14,">=200")
    6
    =COUNTIF($A$2:$A$14,"<200")
    Sheet: Sheet1
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Formula to count number of Vlookup result without helper column

    hi. i am thinking of some array formula. anyone can help?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Formula to count number of Vlookup result without helper column

    Why do you need an array formula? I think you need to give more detail about what you are looking for.

    Please do not forget your Ps and Qs: we expect common courtesy here, which means saying "please" and "thank you" to those offering you help here for free and in their own spare time. Thanks!

  5. #5
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Formula to count number of Vlookup result without helper column

    Hi, sorry, i type my reply thru phone, not that easy to type. Hence try to make it short, sorry if it caused you to think that way.

    Anyway, i re-attached what my data really look like. YOu would see the helper column is really long. From Column C to Column V.
    Thats y i wanted to see if its possible to have the result without all the helper column
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Formula to count number of Vlookup result without helper column

    Just combine the formulae. In M3 copied across and down:

    =VLOOKUP(ROUNDUP((M$2-$B3)/365,0),Lookuptable!$A$2:$B$7,2,1)

  7. #7
    Forum Contributor
    Join Date
    03-12-2012
    Location
    Singapore
    MS-Off Ver
    MS 365
    Posts
    532

    Re: Formula to count number of Vlookup result without helper column

    Hi, thanks. HOwever, what i want is to get the Result in Lookuptable!C2:L9 by just typing the formula directly to C2:L9 without the help of any helper column. Is it possible??

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Formula to count number of Vlookup result without helper column

    I give up.

  9. #9
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: Formula to count number of Vlookup result without helper column

    Perhaps……………

    In "Lookuptable" Sheet C2 copied across to L2, and all copied down :

    =SUMPRODUCT(0+(LOOKUP(INDEX(Sheet1!$C$3:$L$11,0,MATCH(C$1,Sheet1!$C$2:$L$2,0)),$A$2:$B$7)=$B2))

    Regards
    Bosco

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: Formula to count number of Vlookup result without helper column

    I am hugely confused. Surely this is OK:

    =VLOOKUP(ROUNDUP((C$2-$B3)/365,0),Lookuptable!$A$2:$B$7,2,1)

    Open the sheet and take a look.

    If this is NOT what you want... amend your sheet and somewhere else on the sheet show us your expected result (manual calculation).
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formula to count number of Vlookup result without helper column

    Please try at Lookuptable C2 and copy over the table

    =INDEX(FREQUENCY(DATEDIF(Sheet1!$B$3:$B$11,C$1,"y")+1,$A$3:$A$7-1),ROWS(C$2:C2))
    Last edited by Bo_Ry; 10-19-2018 at 04:49 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need dynamic vlookup if possible without helper column
    By davva23 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-04-2017, 07:50 AM
  2. VLOOKUP with multiple criteria - no helper column if possible
    By TRAPLETT in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 06-26-2017, 10:46 AM
  3. Replies: 7
    Last Post: 03-10-2017, 02:20 AM
  4. Sort by helper column even if values in helper are alike
    By NoSleepForMe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2016, 04:14 AM
  5. [SOLVED] HELP! VBA to count number of coloured cells in a column and paste result in seperate tab
    By jordanleewillis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2016, 08:29 AM
  6. [SOLVED] Helper column that will number visible rows
    By bibu in forum Excel General
    Replies: 5
    Last Post: 07-12-2014, 03:49 AM
  7. [SOLVED] Count number of days and formula with text result
    By joseph_yap22 in forum Excel General
    Replies: 4
    Last Post: 05-09-2012, 07:19 PM

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