+ Reply to Thread
Results 1 to 20 of 20

Crcket stats input and reading mutiple cells

  1. #1
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Crcket stats input and reading mutiple cells

    Hello all,

    I'm currently in the middle of creating a team nomination form for my cricket district in Sydney. Now some of the problems haved been solved using VLOOKUP, but now I've hit a wall;

    When i have entered in a player's ID number, everything works well until i noticed that using MAXIFS from my data doesn't work, particularly if the player has stats across multiple grades/division. It might have highest runs from 6th grade, yet more matches in 5th grade. I need one set of matching data when entering in the grade.

    What i need is for a formula (with in One Cell) that'll read the table, recognise the ID number, THEN their grade/division, THEN from the stats will match the row that all this comes from and will add the Matches they played in that grade/division.

    the same process will apply for innings, runs, wickets, from the stats.

    Lumpy115

  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,926

    Re: Crcket stats input and reading mutiple cells

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Morning Ford,

    Thank you, attached is dummy file and have left some notes and failed formula attempts
    Attached Files Attached Files

  4. #4
    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,926

    Re: Crcket stats input and reading mutiple cells

    Thanks for the file

    Could you indicate where you want this formula, and provide a few sample expected answers, please?

  5. #5
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Ford,

    have colour coded a few groups of cells with some detail to what i would like. The sample answers you're looking for will be colour
    coded in the attachment on this reply, as well as some other colour coded details.

    will be on for a bit should you be around

    Lumpy
    Attached Files Attached Files

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Crcket stats input and reading mutiple cells

    As much i could understand I am giving you the solution as follow..

    C9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    L9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    N9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    P9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    R9
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    All the formula's need to enter with special key pressing Control+Shift+Enter.

    Hope this would help you!
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  7. #7
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    shukla,

    thanks for supplying the above formulas, but for what im hoping to read is when stats are entered, it first needs to read either the player ID or NAME, AND what Grade they played in, then it enters in that correct stats. So what I'm after is that it reads the row of information in cells A9 or B9, then I9. Then it matches the row that both (or all three) come from on the right table and inputs the data for matches, inngs, runs, etc.

    So as a quick eg, If i have 'player 1' in ROW 9 (in left table) their 5th grade, I want the stats to match. I'd want all the information from ROW 3 on right table. Because it meets the required ID number (AC3), name (AD3) and grade (AU3). Then so on and so on, because ill have 1500 rows of data in right table so i need it to read every column and row.

  8. #8
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Morning all,

    Does anyone else have an option or suggestion for me please? While Shukla providing something, it does not work for me.

    Lumpy

  9. #9
    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,926

    Re: Crcket stats input and reading mutiple cells

    Did you enter those formulas using CTRL SHIFT ENTER? I tried them all and got answers for them all.

    What didnt work for you?

  10. #10
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Hi FD,

    if i need to adjust the grade the player played in, the stats won't change according. I've placed the formulas Skukla provided in the cells and while it in part works, I need to be able to change the grades where possible rather than it pre filling, and when it's entered, then it puts the right stats in.

    Can you provide the dummy file when you did it please, and if possible, fill the table for rows 9-20 in the table please?

    Lumpy

  11. #11
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Could i use this formula in the picture attached? I've tried it in my spreadsheet and i cannot figure out why it won't read
    it as it does in the example at the top of the attachment.

    In the example and what I've tried is in the table is for cell L9;

    =INDEX(AH3:AH9,MATCH(1,(B9=AC3:AC9)*(C9=AD3:AD9)*(I9=AE3:AE9),0))

    AH3-9 is matches played

    B9= player id# (AC3-9= players id#'s)

    C9= player name (AD3-9= player names)

    I9=Grade (AE3-9= grades for each player)

    The attachment ticks boxes between words and numbers that i need and is matching the requirements to input the correct number.
    Attached Images Attached Images

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Crcket stats input and reading mutiple cells

    I am going to propose a formula for MATCHES, cell L9 and down. If this formula does what you want, we'll look into populating other columns.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Test by changing the values in I9:I10.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Crcket stats input and reading mutiple cells

    In N9 then copied down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  14. #14
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    yes, this has worked, and when i changed the grade, it updates according.

  15. #15
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Thank you all, I've adjusted the formulas to match the innings and runs, and so far they are all working according. To Ford, Shakla, FD, Jete, and kvsrinivasamurthy, thanks you for taking a little time to assist.

  16. #16
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    What should be a final question, Am i able to use Data Validation to create a drop down list just for the grades each player has played for? Eg, Players 1 (has either '5th' or '6th' as an option. Eg2 player 2 (has either '1st' or '2nd' as an option?

  17. #17
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Crcket stats input and reading mutiple cells

    A two step process:
    1. Produce a named range (Player_Grade) with the Refers To of: =OFFSET(DUMMY_SHEET!$AU$2,MATCH(DUMMY_SHEET!$B9,DUMMY_SHEET!$AC$3:$AC$9,0),0,COUNTIF(DUMMY_SHEET!$AC$3:$AC$9,DUMMY_SHEET!$B9))
    2. Place data validation in column I with a source of: =Player_Grade
    Let us know if you have any questions.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    thanks mate,

    I'll give it a try in a few hours.

    Lumpy

  19. #19
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Crcket stats input and reading mutiple cells

    You're Welcome and thank you for the feedback. If the issues are now resolved, please take a moment to mark the thread as 'Solved' using the thread tools menu above the first post on either page. I hope that you have a blessed day.

  20. #20
    Registered User
    Join Date
    08-07-2019
    Location
    Sydney
    MS-Off Ver
    365 pro plus
    Posts
    18

    Re: Crcket stats input and reading mutiple cells

    Thank you again all, enjoy your weekends. Lumpy

+ 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] Reading a input value from a message box
    By bvwalker1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2019, 12:14 PM
  2. Replies: 8
    Last Post: 04-20-2017, 02:24 AM
  3. Graph to show individual Stats as compared to the population stats
    By Kellbells in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 02-12-2015, 10:36 AM
  4. Input box for an array for baseball stats
    By baseball fanatic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-31-2014, 09:22 AM
  5. Replies: 3
    Last Post: 12-27-2012, 12:19 PM
  6. Replies: 11
    Last Post: 07-04-2012, 09:30 AM
  7. Replies: 3
    Last Post: 08-10-2009, 12:38 PM

Tags for this Thread

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