Forum Discussion
Enter Value With Conditions
- Feb 18, 2024
To achieve your goal of listing the deposits by day by type by account in Columns E, F, and G, you can use Excel's SUMIFS function (is one of the possibilities and functions) along with logical conditions to filter the data based on the criteria provided. Here is how you can set up the formulas in Columns E, F, and G:
Assuming your data starts from Row 2 (with headers in Row 1), you can use the following formulas:
In cell E2 (Dividends for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Dividends*"), "")
In cell F2 (Interest for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Interest*"), "")
In cell G2 (Capital Gains for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Capital Gains*"), "")
Drag these formulas across Columns E, F, and G to apply them to the respective types and accounts. Adjust the range ($B$2:$B$100, $A$2:$A$100, $C$2:$C$100, $D$2:$D$100) as needed based on the actual range of your data.
These formulas will sum the deposits in Column B based on the specified criteria in Columns A, C, and D, and return the total deposits of each type for each account for each day. The IFERROR function is used to handle cases where there are no deposits of a particular type on a given day, in which case an empty string ("") is returned. All formulas are untested because there was no example file with data attached or photos with an example.The text and steps were edited with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
To achieve your goal of listing the deposits by day by type by account in Columns E, F, and G, you can use Excel's SUMIFS function (is one of the possibilities and functions) along with logical conditions to filter the data based on the criteria provided. Here is how you can set up the formulas in Columns E, F, and G:
Assuming your data starts from Row 2 (with headers in Row 1), you can use the following formulas:
In cell E2 (Dividends for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Dividends*"), "")
In cell F2 (Interest for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Interest*"), "")
In cell G2 (Capital Gains for Account A):
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $C$2:$C$100, $C2, $D$2:$D$100, "*Capital Gains*"), "")
Drag these formulas across Columns E, F, and G to apply them to the respective types and accounts. Adjust the range ($B$2:$B$100, $A$2:$A$100, $C$2:$C$100, $D$2:$D$100) as needed based on the actual range of your data.
These formulas will sum the deposits in Column B based on the specified criteria in Columns A, C, and D, and return the total deposits of each type for each account for each day. The IFERROR function is used to handle cases where there are no deposits of a particular type on a given day, in which case an empty string ("") is returned. All formulas are untested because there was no example file with data attached or photos with an example.The text and steps were edited with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark as best response and Like it!
This will help all forum participants.
- NikolinoDEFeb 18, 2024Platinum Contributor
To sum all dividends deposited in Account A over a period of time and display the total in cell Z2, you can use the SUMIFS function with modified criteria. Here is how you can do it:
=IFERROR(SUMIFS($B$2:$B$100, $A$2:$A$100, "Account A", $D$2:$D$100, "*Dividends*"), "")
This formula sums the deposits from Column B where:
- Column A matches "Account A".
- Column D contains the word "Dividends".
You can place this formula in cell Z2 to calculate the total dividends deposited in Account A over the specified period. Adjust the range ($B$2:$B$100, $A$2:$A$100, $D$2:$D$100) based on the actual range of your data.
If there are no dividends deposited in Account A over the specified period, the formula will return an empty string ("") due to the IFERROR function, ensuring a cleaner output.
- JlkirkMar 31, 2024Copper ContributorWhat if I wanted to sum the Dividends, Interest, etc. deposited into the various accounts say for the month of January in one cell. Would it involve the MONTH() function?
- NikolinoDEApr 01, 2024Platinum Contributor
If you want to sum the deposits of different types (such as Dividends, Interest, etc.) deposited into various accounts for the month of January and display the total in one cell, you can indeed use the MONTH() function along with other functions like SUMIFS() to achieve this. Here's how you can do it:
Assuming your data is organized with the account names in column A, deposit amounts in column B, deposit dates in column C, and deposit types in column D, you can use the following formula to sum the deposits of a specific type (e.g., Dividends) for the month of January across all accounts:
=SUMIFS($B$2:$B$100, $A$2:$A$100, "<>", $D$2:$D$100, "Dividends", MONTH($C$2:$C$100), 1)
Here's what this formula does:
- SUMIFS(): This function adds up the values in a range that meet multiple criteria.
- $B$2:$B$100: This is the range containing the deposit amounts.
- $A$2:$A$100: This is the range containing the account names.
- "<>": This condition ensures that the account name is not empty. It acts as a wildcard to include all account names.
- $D$2:$D$100: This is the range containing the deposit types.
- "Dividends": This is the specific deposit type you want to sum.
- MONTH($C$2:$C$100): This function extracts the month from the dates in column C. The number 1 represents January.
This formula will sum all the deposit amounts where the deposit type is "Dividends" and the month of the deposit date is January, across all accounts.
You can modify this formula accordingly to sum other deposit types (e.g., Interest, Capital Gains) or for different months by changing the criteria within the SUMIFS() function and the MONTH() function. The text was created with the help of AI.
This is my final reply to this post. You can like the answers if they helped you (this will also help other users who have a similar topic). If others have questions, I recommend opening a new discussion.