+ Reply to Thread
Results 1 to 6 of 6

formula to find certain number in a table when x axis and y axis are matched

  1. #1
    Registered User
    Join Date
    08-22-2015
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    13

    Post formula to find certain number in a table when x axis and y axis are matched

    good day
    could anyone help me with a formula to find certain number in a table when x axis and y axis are matched

    I have table 1


    Table 1.jpg
    A B C D E F G H
    1 Jan Feb Mar Apr May Jun
    2 Ben 1 1
    3 Ben 1
    4 Ben 1
    5 Rick 1
    6 Rick 1
    7 Rick


    then in Table 2
    Table 2.jpg

    K L M N O P Q R
    1 Jan Feb Mar Apr May Jun
    2 Ben
    3 Rick

    I would like to have a formula that will fill in the number 1 from Table 1 where Ben has a 1 under each month
    so table 2 must have a 1 next to Ben for Jan ,Feb,May and June
    and Rick must have a 1 for Mar and Apr

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: formula to find certain number in a table when x axis and y axis are matched

    In M2, use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy to the right and down.

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

    Re: formula to find certain number in a table when x axis and y axis are matched

    Try this and copy across
    =SUMIFS(B$2:B$7,$A$2:$A$7,$K2)
    Please Login or Register  to view this content.
    Samba

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

  4. #4
    Registered User
    Join Date
    08-22-2015
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    13

    Re: formula to find certain number in a table when x axis and y axis are matched

    thanks a lot quekbc
    that works , but is there no formula that matches the name and the month
    the main spreadsheet I have is like 3000 line with about 15 names all mixed in the sheet

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,970

    Re: formula to find certain number in a table when x axis and y axis are matched

    =SUMIF($B$2:$B$7 , $L2 , C$2:C$7)

    Bold matches Name and assuming months are from Jan to Dec in both tables then there is no need to match the month:it is "assigned" by default by copying across and down as quekbc stated

    Extend B and C range to 3000

  6. #6
    Registered User
    Join Date
    08-22-2015
    Location
    South Africa
    MS-Off Ver
    2010
    Posts
    13

    Re: formula to find certain number in a table when x axis and y axis are matched

    thanks for that John Topley and quekbc
    have a great weekend

+ 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] Two Y Axis's One X, Chart Data not in sync with X axis between Y axis's
    By MJSlattery in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-08-2013, 12:08 AM
  2. [SOLVED] Bar Graph With 2 Axis - Bars On The Primary Axis Overlap Bars On The Secondary Axis
    By Variablez in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 03-11-2013, 08:38 AM
  3. [SOLVED] Vlookup Formula to find partially matched number
    By lglThird in forum Excel General
    Replies: 4
    Last Post: 09-21-2012, 10:00 PM
  4. Replies: 0
    Last Post: 08-23-2012, 11:52 AM
  5. Replies: 0
    Last Post: 06-13-2011, 11:11 AM
  6. Replies: 8
    Last Post: 02-12-2009, 10:12 AM
  7. [SOLVED] Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis
    By mw210461@yahoo.com in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-13-2005, 05:05 PM
  8. How to insert X axis scale values next to axis and X axis grid lin
    By vp23larry in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-23-2005, 11:05 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