+ Reply to Thread
Results 1 to 7 of 7

Help with Vlookup Countif Formula

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Help with Vlookup Countif Formula

    I think the formula I am searching for would be a combination of vlookup and countif, I was wondering if anyone could take a look at the excel file example and recommend suggestions.

    Thank you very much for reading this.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Help with Vlookup Countif Formula

    I don't understand your I:K table. What does 'Next Result' mean? Where do the 'Times' come from? How does the 'C2' in G8 relate to the table?

    Your 'total' is only a total of the previous 3 rows - did you mean it to be a total of all the rows, which would then also make the percentages add to just 100% instead of the current 200%?

    Please try to clarify better what you are trying to achieve, so we can try to help.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Re: Help with Vlookup Countif Formula

    sorry c2 is data not a cell.

    the I:K table is basically looking up the data c2 and counting how many times different results are under c2.

    So for example if you look at column A and search for C2 you'll see the result A1 came after C2 one time.
    in this example data c2 is in cell A8 and data a1 is in cell A9

    I hope this helps, sorry if I'm not explaining it well. Basically I want to search certain data from the list and count the results that come under that search.
    Last edited by formexcel; 07-06-2017 at 08:08 AM.

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Help with Vlookup Countif Formula

    j8=COUNTIFS($A$1:$A$78,$G$8,$A$2:$A$79,$I8)
    or
    =SUMPRODUCT(($A$1:$A$78=$G$8)*($A$2:$A$79=$I8))
    and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    01-04-2016
    Location
    uk
    MS-Off Ver
    10
    Posts
    49

    Re: Help with Vlookup Countif Formula

    Thanks these work perfectly, but then id need to update the formula every time I added more data to column A. Is there a way round this, so I can look up A:A for example?

  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
    81,213

    Re: Help with Vlookup Countif Formula

    Turn your data into an Excel table and then reference the column by its table name -the range will then adapt when rows are added.
    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.

  7. #7
    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
    81,213

    Re: Help with Vlookup Countif Formula

    Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Formula Question VLOOKUP SUMIF COUNTIF
    By lawless1301 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-09-2016, 01:22 PM
  2. Possible VLOOKUP COUNTIF Calculation Formula help needed
    By formexcel in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-12-2016, 01:40 PM
  3. Faster if/countif formula for flagging uniques - countif too slow
    By Speshul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-19-2015, 01:44 PM
  4. [SOLVED] COUNTIF and VLOOKUP in one formula
    By Iwant2learnmore in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-21-2015, 04:17 AM
  5. COUNTIF & VLOOKUP Formula Issues
    By xcelhelp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-09-2013, 04:11 PM
  6. [SOLVED] SUMIF/VLOOKUP/COUNTIF type formula needed
    By liam_bettinson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-26-2012, 03:54 AM
  7. VLOOKUP and COUNTIF in the same formula
    By Stepper in forum Excel General
    Replies: 5
    Last Post: 11-04-2010, 09:16 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