+ Reply to Thread
Results 1 to 8 of 8

Assign Points in a Calendar

  1. #1
    Registered User
    Join Date
    11-04-2021
    Location
    Joplin MO
    MS-Off Ver
    Excel 2013
    Posts
    10

    Assign Points in a Calendar

    I have a calendar where I want to bring over the CODE (Points) for a specified employee. See Attached: Employee is selected on the Calendar and the CODE from the Data Tab are brought over. Right now I am getting just the number, I need it to be the CODE. I was using a sumif but now need another option.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Assign Points in a Calendar

    Dynamic Range names:
    ActCode =Data!$E$2:INDEX(Data!$E:$E,LastRec)
    DATA =Data!$E$2:INDEX(Data!$A:$A,LastRec)
    Employee_Names =Data!$A$2:$A$8
    FileNum =Data!$B$2:INDEX(Data!$B:$B,LastRec)
    LastRec =COUNTA(Data!$A:$A)
    Occur_Date =Data!$C$2:INDEX(Data!$C:$C,LastRec)
    Points =Data!$D$2:INDEX(Data!$D:$D,LastRec)


    Array formula:
    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files
    Last edited by protonLeah; 03-11-2022 at 04:06 PM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    11-04-2021
    Location
    Joplin MO
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Assign Points in a Calendar

    Thank you for your help. In the list of formulas is this one correct? DATA =Data!$E$2:INDEX(Data!$A:$A,LastRec) The first part looking at E and the Index at A??

  4. #4
    Registered User
    Join Date
    11-04-2021
    Location
    Joplin MO
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Assign Points in a Calendar

    I am trying to input the formula for Cell E9 and here is what I have (see screenshot), is it correct?
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Assign Points in a Calendar

    WRT #3:
    I just defined the range from top right to bottom left. It's the same as
    =INDEX(Data!$A:$A,LastRec):Data!$E$2, i.e. bottom left to top right
    WRT #4:
    The formula is correct, but I should have wrapped it in IFERROR() to handle cases were there is no match in the database:
    A9:
    Please Login or Register  to view this content.
    Last edited by protonLeah; 03-14-2022 at 06:11 PM.

  6. #6
    Registered User
    Join Date
    11-04-2021
    Location
    Joplin MO
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Assign Points in a Calendar

    On the WRT #3:
    I just defined the range from top right to bottom left. It's the same as
    =INDEX(Data!$A:$A,LastRec):Data!$E$2, i.e. bottom left to top right

    I want to make sure I understand, Data!$E$2 is right for the first part looking at column A??

  7. #7
    Registered User
    Join Date
    11-04-2021
    Location
    Joplin MO
    MS-Off Ver
    Excel 2013
    Posts
    10

    Re: Assign Points in a Calendar

    My formula is picking up the wrong data. In the attached Employee 1 should not have anything for 1/29/22, that date is only for Employee 2. But when I change the Employee to Employee 2, the entry for 1/29/22 goes away.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Assign Points in a Calendar

    If the data were static and unchanging I would have defined the name "DATA" as referring to A2:E9. However, I assumed that the number of rows is variable, but that the number of columns is fixed at five.

    One way to define the variable-row range is with the OFFSET function as:
    =OFFSET(A2,0,0,COUNTA(A:A)-1, 5)


    Another option, using INDEX/MATCH and specifying the opposite corners of the range. The top corners are fixed, in this case, but the bottom ones are variable by row. There are several options:

    Top left to bottom right:
    =Data!$A$2:INDEX(Data!$1:$1048576,COUNTA(Data!$A:$A), 5)


    Top right (E2) to bottom left (INDEX(Data!$A:$A,LastRec):
    =Data!$E$2:INDEX(Data!$A:$A,LastRec)


    etc...
    Last edited by protonLeah; 03-15-2022 at 05:25 PM.

+ 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. Assign Points Based on Place Finished in Race
    By grantalias in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 06-28-2021, 11:34 PM
  2. Replies: 2
    Last Post: 09-06-2019, 09:22 AM
  3. Help on formula to assign points
    By stephenday in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-31-2017, 08:36 AM
  4. Plotting points from Spreadsheet onto Calendar
    By jutaemma in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2013, 02:12 AM
  5. Need to assign points to certain words (criteria)
    By ExcelNewbie350 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-22-2013, 12:22 PM
  6. [SOLVED] Assign points based on % to plan of goal
    By SVTF in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-09-2013, 12:17 AM
  7. Assign number based on sort order (Step Ladder points)
    By benjya in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2012, 01:24 AM

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