+ Reply to Thread
Results 1 to 10 of 10

Changing multiplier based on cell value

  1. #1
    Registered User
    Join Date
    12-18-2024
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Version: 18.2412.1114.0
    Posts
    5

    Question Changing multiplier based on cell value

    Hi!

    I'm creating a registration form where you state which days you have attended an activity. The participant receives 4 points for attending on Saturdays and 6 points for Sundays. When they has attended more than seven Saturdays and/or Sundays, they receive 5 points for Saturdays and 7 points for Sundays. This shall not affect the points awarded for attending the first seven Saturdays or Sundays.

    A number one is put in column B for participation on that date and in column C the calculation should be. There will be one sheet per month in addition to a summary sheet where you can see the total.

    Attachment 885097

    Can anyone please help me?
    Attached Files Attached Files
    Last edited by Lillebergen; 12-20-2024 at 08:32 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,897

    Re: Changing multiplier based on cell value

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. The sample layout accurately matches that of your real data. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-18-2024
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Version: 18.2412.1114.0
    Posts
    5

    Re: Changing multiplier based on cell value

    This went a bit fast, sorry. Now a simplified file has been uploaded. Thanks for the quick feedback.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,897

    Re: Changing multiplier based on cell value

    You'll need real dates for this.

    So, to generate your dates, for example:

    =LET(d,DATE(2025,1,1),SEQUENCE(DAY(EOMONTH(d,0)),,d))

    and to allocate points:

    =IF(F2:F32="","",LOOKUP(WEEKDAY(E2#,2),{1,6,7},{"",4,6}))

    See in the attached workbook.

    When they has attended more than seven Saturdays and/or Sundays, they receive 5 points for Saturdays and 7 points for Sundays.
    This is more complcated when you have all of your months on separate tabs. Is it REALLY necessary to have one tab per month? I have not yet worked this requirement into the formula.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-18-2024
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Version: 18.2412.1114.0
    Posts
    5

    Re: Changing multiplier based on cell value

    Thank you.
    I need one month per sheet because it must be clear and easy to navigate, and at the end of each month we print out the sheet for the month for archiving.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Changing multiplier based on cell value

    In individual month sheet:
    With Date, Day, Attended and Points in columns A to D, and 1st day of the month in A2,
    A3: =IFERROR(IF(MONTH(A2+1)>MONTH(A2),"",A2+1),""), copy down
    B2: =TEXT(A2,"ddd"), copy down
    D2: =IF(AND(C2=1,B2="Sat"),4+IF(COUNTIFS($B$2:$B2,"Sat",$C$2:$C2,1)+COUNTIFS($B$2:$B2,"Sun",$C$2:$C2,1)>7,1,0),IF(AND(C2=1,B2="Sun"),6+IF(COUNTIFS($B$2:$B2,"Sat",$C$2:$C2,1)+COUNTIFS($B$2:$B2,"Sun",$C$2:$C2,1)>7,1,0),"")), copy down
    Conditional Formatting formula: =OR($B2="Sat",$B2="Sun"), applies to: =$A$2:$C$32

    In Total sheet:
    Total days attended: =IFERROR(INDIRECT($A2&"!$C$33"),"")
    Total points received: =IFERROR(INDIRECT($A2&"!$D$33"),"")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-18-2024
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Version: 18.2412.1114.0
    Posts
    5

    Re: Changing multiplier based on cell value

    Thank you very much!
    The calculation will be correct per month, but it does not take into account points given in the previous month?
    If the participant has taken part in 8 courses in January, the courses in February and onwards must also give 5 and 7 points (instead of 4 and 6).

    It is perhaps not possible to retrieve this between the sheets?

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Changing multiplier based on cell value

    For February, add +SUM(January!C$41:C$42) to the Points formula:

    Please Login or Register  to view this content.
    For March, change to +SUM(January:February!C$41:C$42). Do the same for subsequent months.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-18-2024
    Location
    Oslo, Norway
    MS-Off Ver
    MS 365 Version: 18.2412.1114.0
    Posts
    5

    Re: Changing multiplier based on cell value

    Perfect! Thank you

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Changing multiplier based on cell value

    You are welcome!

+ 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 Help: use a certain multiplier based from the product groups
    By Jesres in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 02-11-2021, 05:33 AM
  2. Replies: 7
    Last Post: 05-24-2016, 05:09 PM
  3. Add multiplier based on text
    By kevinjay1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-09-2013, 10:47 AM
  4. How to change the multiplier based on the sum of 2 numbers
    By Jcarpent in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-14-2013, 11:22 PM
  5. determine what my multiplier should be based on a range of numbers
    By BbAaSsSs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-10-2007, 03:48 PM
  6. changing multiplier IF......
    By zenix in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-15-2007, 11:25 PM
  7. changing multiplier.
    By kathemius in forum Excel General
    Replies: 5
    Last Post: 12-01-2006, 10:43 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