Others

Sum Revenue Columns When Months Match in Smartsheet

Olivia MillerOlivia Miller Dec 2, 2026 869 views

Question details

Calculate the total revenue from all month and revenue column pairs that match a specified month in the same Smartsheet row.

Sum Revenue Columns When Months Match in Smartsheet
Product
Smartsheet
Device & OS
not provided
Scenario
A row contains separate Ship, Deposit, Install, and Other month and revenue columns, and the user wants the total for 2021-10.
Observed behavior
The current formula returns only the first revenue value whose month matches, rather than adding all matching values.
Before you start

Check that the column names match the formula and that the month values are text in the format 2021-10. Confirm that the revenue columns contain numeric values.

Solution 1Recommended

Add independent IF tests for each revenue column

Use this formula to include every revenue value whose corresponding month matches 2021-10.

A nested IF formula can stop at the first matching condition. Adding four independent IF results allows multiple matches in the same row to contribute to the total.

1
Select the total cell

In Smartsheet, select the cell in the row where you want to display the matching revenue total.

2
Enter the formula

Enter =IF([Ship Month]@row="2021-10",[Shipment Rev]@row,0)+IF([Deposit Month]@row="2021-10",[Deposit Rev]@row,0)+IF([Install Month]@row="2021-10",[Install Rev]@row,0)+IF([Other Month]@row="2021-10",[Other Revenue]@row,0) and press Enter.

3
Check the result

Compare the total with the revenue values in the same row. Each month that matches 2021-10 should contribute its paired revenue value.

4
Apply it to other rows

Copy the formula to other total cells or use Smartsheet's column formula option if you want it applied throughout the column.

Add independent IF tests for each revenue column
Check the month format: This formula compares text values. If the month columns contain actual dates rather than text such as 2021-10, the comparisons need to be adjusted for date values.
Calculate revenue in a spreadsheet

Sum matching monthly revenue in WPS Spreadsheets

Use independent IF formulas in WPS Spreadsheets to total matching revenue from a copy of your data. This calculates the result in WPS; it does not update the Smartsheet formula.

  1. 1. Open the revenue data: Open WPS Spreadsheets and open an Excel file containing your revenue data, or paste a copy of the data into a new workbook.
  2. 2. Arrange the columns: For this example, place Ship Month and Shipment Rev in columns A and B, Deposit Month and Deposit Rev in C and D, Install Month and Install Rev in E and F, and Other Month and Other Revenue in G and H.
  3. 3. Set the target month: Format cell J1 as Text, then enter 2021-10. Make sure the month values in columns A, C, E, and G use the same text format.
  4. 4. Calculate the total: In an empty cell on row 2, enter =IF(A2=$J$1,B2,0)+IF(C2=$J$1,D2,0)+IF(E2=$J$1,F2,0)+IF(G2=$J$1,H2,0) and press Enter. Copy the formula down to calculate totals for other rows.
Add all matching revenue values in the same rowWork with Microsoft Excel XLSX filesChange the target month in one cellUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why does my Smartsheet formula return only one revenue value?

A nested IF formula can return as soon as it finds the first match. Add separate IF expressions instead so each matching month contributes its revenue value.

How do I change the month being totaled?

Edit the formula in the total cell and replace each instance of "2021-10" with the target month, using the same text format as your month columns.

Will the formula work if my month columns contain actual dates?

Not as written. The formula compares each month value with the text "2021-10". For actual date values, adjust the conditions to compare the dates' year and month.

Can I apply the formula to every row in Smartsheet?

Yes. Copy the formula into other total cells, or use Smartsheet's column formula option to apply it throughout the column. The @row references evaluate the corresponding cells in each row.