+ Reply to Thread
Results 1 to 13 of 13

Index, Find, Row Formula to arrive at the results

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Index, Find, Row Formula to arrive at the results

    I have set of data (Shown Below). Column A(Date), Column B(Company), Column C(Employee), Column D(Dept), Column E(Results). I need to write a formula to arrive the Results (Column E). In my organization employees attend meeting with outside companies. Both the sales dept and research dept employees attend. If 2 research department people attend to a particular company meeting I need the results has 2 in coulum E. If 3 research people attend I need the results has 3. Please help me to write a formula to arrive the results.

    Date Company Empl Dept Results
    6/1/2015 ABC LTD John Sales 2
    6/1/2015 ABC LTD Ram Sales 2
    6/1/2015 ABC LTD Sam Research 2
    6/1/2015 ABC LTD Jude Research 2
    6/1/2015 XYZ LTD John Sales 1
    6/1/2015 XYZ LTD RAM Sales 1
    6/1/2015 XYZ LTD Sam Research 1
    6/1/2015 DLD LTD John Sales 3
    6/1/2015 DLD LTD Sam Research 3
    6/1/2015 DLD LTD Jude Research 3
    6/1/2015 DLD LTD Kate Research 3
    Last edited by sjpras; 01-20-2015 at 05:50 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index, Find, Row Formula to arrive at the results

    Try this, copied down...
    =COUNTIFS($A$2:$A$12,A2,$B$2:$B$12,B2,$E$2:$E$12,"Research")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    Hi Ford thank you for the reply. I tries ur formula. I am getting the results has "0". Its not working

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Index, Find, Row Formula to arrive at the results

    Try these two

    =COUNTIFS($B$2:$B$12,B2,$D$2:$D$12,D2)

    or

    =SUMPRODUCT(($B$2:$B$12=B2)*($D$2:$D$12=D2))

    Row\Col
    A
    B
    C
    D
    E
    1
    Date Company Empl Dept Results
    2
    6/1/2015
    ABC LTD John Sales
    2
    3
    6/1/2015
    ABC LTD Ram Sales
    2
    4
    6/1/2015
    ABC LTD Sam Research
    2
    5
    6/1/2015
    ABC LTD Jude Research
    2
    6
    6/1/2015
    XYZ LTD John Sales
    2
    7
    6/1/2015
    XYZ LTD RAM Sales
    2
    8
    6/1/2015
    XYZ LTD Sam Research
    1
    9
    6/1/2015
    DLD LTD John Sales
    1
    10
    6/1/2015
    DLD LTD Sam Research
    3
    11
    6/1/2015
    DLD LTD Jude Research
    3
    12
    6/1/2015
    DLD LTD Kate Research
    3
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index, Find, Row Formula to arrive at the results

    It seemed to work fine for me...
    A
    B
    C
    D
    E
    F
    G
    1
    Date Company Empl Dept Results Yours Mine
    2
    6/1/2015
    ABC LTD John Sales
    2
    2
    3
    6/1/2015
    ABC LTD Ram Sales
    2
    2
    4
    6/1/2015
    ABC LTD Sam Research
    2
    2
    5
    6/1/2015
    ABC LTD Jude Research
    2
    2
    6
    6/1/2015
    XYZ LTD John Sales
    1
    1
    7
    6/1/2015
    XYZ LTD RAM Sales
    1
    1
    8
    6/1/2015
    XYZ LTD Sam Research
    1
    1
    9
    6/1/2015
    DLD LTD John Sales
    3
    3
    10
    6/1/2015
    DLD LTD Sam Research
    3
    3
    11
    6/1/2015
    DLD LTD Jude Research
    3
    3
    12
    6/1/2015
    DLD LTD Kate Research
    3
    3

    G2=COUNTIFS($A$2:$A$12,A2,$B$2:$B$12,B2,$E$2:$E$12,"Research")


    If you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

  6. #6
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    Please see the file I have uploaded it.
    Attached Files Attached Files

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index, Find, Row Formula to arrive at the results

    Apart from B2, most other cells in column B have a trailing space - remove that and it should work

  8. #8
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    WOW excellent its working

  9. #9
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    Hi Ford, In Some days only a Sales person participate. In that occasion I need the results to be appear has 1.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    Sorry wrong attach
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index, Find, Row Formula to arrive at the results

    See if this will work for you?
    =MAX(1,COUNTIFS($A$2:$A$12,A2,$B$2:$B$12,B2,$E$2:$E$12,"Research"))

  12. #12
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: Index, Find, Row Formula to arrive at the results

    Thank a lot ford u r a star!!...

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Index, Find, Row Formula to arrive at the results

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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] Formula to arrive back at original figure after adding %
    By sumospim in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2014, 05:15 PM
  2. Unable to arrive at dynamic & automated alternative to manual find & replace process
    By calantha in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-19-2013, 03:55 AM
  3. Formula required to arrive at price
    By Deekappa in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-23-2013, 01:04 PM
  4. Formula problem when trying to arrive at a total
    By verifier in forum Excel General
    Replies: 3
    Last Post: 03-13-2012, 02:01 PM
  5. Sum of results from Index match formula
    By TomJones0505 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 06-19-2009, 09:49 AM

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