• ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips

No products in the cart.

  • ChatGPT Business
  • Microsoft Office
  • Microsoft Windows
  • Other Software
    • Microsoft Visual
    • Microsoft Project
    • Microsoft Visio
    • Anti Virus
  • Blog
    • Word
    • Excel
    • Powerpoint
    • Software tricks/tips
Excel

Price SUM by weekdays in Excel

0 Comments

Price SUM by weekdays in Excel. In this article, we will learn how to calculate the sum of prices by weekdays in Excel.

Scenario: When working with price data, there are times when we need to find the sum of price values based on specific weekdays. The condition is to consider the given weekday and calculate the sum of corresponding price values. The formula below demonstrates how to achieve this.

Price SUM by weekdays in Excel

How to solve the problem: To solve this problem, we will use the following functions:

  • SUMPRODUCT function
  • WEEKDAY function

We will combine these functions to create a formula. We will provide the necessary data and calculate the sum based on the given weekday_num.

Syntax of the formula: =SUMPRODUCT((WEEKDAY(dates) = weekday_num) * price)

Explanation of terms:

  • Dates: Date values provided as cell references or using named ranges.
  • Weekday_num: Number representing the weekday of the week.
  • Price: Amounts or price values to be added.
    Price SUM by weekdays in Excel

    Price SUM by weekdays in Excel

Example: To better understand the concept, let’s test the formula with an example. Assume we have data with the prices of products received on different dates. We want to find the sum of prices for all seven weekdays. To achieve this, we assign weekday_nums in a column for the formula. The formula to calculate the sum of prices is as follows:

Formula: =SUMPRODUCT((WEEKDAY(dates) = G2) * price)

Explanation: The WEEKDAY function checks if the week_num in G2 matches the weekday of each date and returns TRUE or FALSE for the array of dates. The SUMPRODUCT function assigns a value of 1 for every TRUE value and 0 for every FALSE value. The formula then multiplies the resulting array of 1s and 0s with the price values and adds them up to calculate the sum.

By providing the named range “dates” for the date range C2:C10, the cell reference G2 for the value in G2, and the named range “price” for the price range D2:D10, we can obtain the sum of prices for the specified weekday.

Price SUM by weekdays in Excel

Price SUM by weekdays in Excel

Additionally, if you want to find the sum of values excluding a specific weekday, you can use the NOT function in combination with the WEEKDAY function. The formula would be:

Price SUM by weekdays in Excel

Price SUM by weekdays in Excel

Formula: =SUMPRODUCT(NOT((WEEKDAY(dates) = G2)) * price)

The NOT function negates the result of the WEEKDAY function, turning 0s to 1s and 1s to 0s. The rest of the formula remains the same, allowing you to calculate the sum without including the specified weekday.

Notes:

  • The SUMPRODUCT function treats non-numeric values as 0s.
  • The SUMPRODUCT function interprets the logical value TRUE as 1 and FALSE as 0.
  • The arrays provided as arguments must have the same length, or else the function will return an error.
Rate this post
44
290 Views
How To Change The "Welcome" Text On The Computer Startup ScreenPrevHow To Change The "Welcome" Text On The Computer Startup ScreenJune 21, 2023
Combining First Name and Last Name in Microsoft Excel ( P1 )June 21, 2023Combining First Name and Last Name in Microsoft Excel ( P1 )Next

Leave a Reply Cancel reply

You must be logged in to post a comment.

Buy Windows 11 Professional MS Products CD Key
Buy Office 2021 Professional Plus Key Global For 5 PC
Top rated products
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
  • Trend Micro Maximum Security 3 Devices 1 Year key Global Trend Micro Maximum Security 3 Devices 1 Year key Global
    Rated 5.00 out of 5
    $15.00
  • Windows 11 Home Key Global 2021 Windows 11 Home Key Global 2021
    Rated 5.00 out of 5
    $6.00
  • Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global Windows Server 2022 Remote Desktop Services User Connections (50) Cal Key Global
    Rated 5.00 out of 5
    $22.00
  • AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years AVG Ultimate 2021 with Antivirus + Cleaner, Secure VPN 10 Devices 2 Years
    Rated 5.00 out of 5
    $47.00
Products
  • Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL Trend Micro Internet Security 3 Devices 1 Year Key GLOBAL
    Rated 5.00 out of 5
    $17.00
  • AVG Internet Security 2021 10 Devices 2 Years Global AVG Internet Security 2021 10 Devices 2 Years Global
    Rated 5.00 out of 5
    $42.20
  • Office 2024 Home And Business For Mac/Pc Bind Office 2024 Home And Business For Mac/Pc Bind $99.00
  • Project Professional 2024 Project Professional 2024 $33.00
  • Windows Server 2016 Datacenter Key Global Windows Server 2016 Datacenter Key Global
    Rated 4.74 out of 5
    $10.00
  • Visio Professional 2024 Visio Professional 2024 $33.00
  • Microsoft Visio Professional 2021 Key 1PC Microsoft Visio Professional 2021 Key 1PC $13.00
  • Microsoft Visual Studio Enterprise 2022 For 1 PC Microsoft Visual Studio Enterprise 2022 For 1 PC $19.00
  • Windows 10 Pro OEM Key Global - Reinstalling win is still active Windows 10 Pro OEM Key Global - Reinstalling win is still active
    Rated 4.88 out of 5
    $6.00
  • Windows Server 2012 Remote Desktop Services 50 USER Connections Key Global Windows Server 2012 Remote Desktop Services 50 USER Connections Key Global
    Rated 4.69 out of 5
    $25.00
Product categories
  • Anti Virus
  • Microsoft Office
  • Microsoft Project
  • Microsoft Visio
  • Microsoft Visual
  • Microsoft Windows
  • Other Software
  • Uncategorized

Buffcom.net always brings the best digital products and services to you. Specializing in Office Software and online marketing services

BIG SALE 50% IN MAY

Microsoft Office
Microsoft Windows
Anti-Virus
Contact Us

Visit Us:

125 Division St, New York, NY 10002, USA

Mail Us:

buffcom.net@gmail.com

TERMS & CONDITIONS | PAYMENT GUIDE  | SHIPPING POLICY  | REFUND POLICY

Copyright © 2019 buffcom.net  All Rights Reserved.