Formula for Sum of # amount and Dollar Amount

Annie_B
Annie_B
edited 12/09/19 inFormulas and Functions

I am trying to create a Dashboard to show two things:

#1- To show how many (#) of each industry that are “wins” and how many (#) of each industry that are “forecasted”. The columns are titled"Industry"and the"Stage"column has the information for Wins and Forecasted.

Wins="5 - Win"andForecasted ="0 - Lead", "1 - Unqualified" , "2 - Qualified" , "3 - Proposal" , "4 - Final (EL), "8 - Hold"

#2 -to show the dollar amount ($) for the same industries that are “wins” and “forecasted”. Same as above, but the dollar amount is in the"Forecasted Amount"column.

Tags:

Comments

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi Annie,

    Can you describe your process in more detail and maybe share the sheet(s) or some screenshots? That would make it easier to help. (share too,[email protected])

    Happy New Year!

    Best,

    Andrée Starå

    Workflow Consultant @ Get Done Consulting

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå| Workflow Consultant / CEO @WORK BOLD

    W:www.workbold.com| E:[email protected]| P: +46 (0) - 72 - 510 99 35

    Feel free to contact me about help with Smartsheet, integrations, general workflow advice, or something else entirely.

  • Thank you for your help, I will attach a screenshot below for reference. You can see the columns that will be used highlighted in yellow.

    We would like to create a dashboard to show each Industry leader how many opportunities and how much money they are bringing in.

    The Stage column is what we need to sort the wins from the forecasted.

    For Example:We would have one widget that shows the Healthcare Industry as having 4 Wins (a win is defined on the Stage column as "5 - Win") and 8 Forecasted Opportunites (Forecasted is defined on the Stage column as "0 - Lead", "1 - Unqualified" , "2 - Qualified" , "3 - Proposal" , "4 - Final (EL) and "8 - Hold" on the Stage column).

    And another widget that shows the Healthcare Industry as having brought in "$X" of wins and "$X" of forecasted opportunities (same as above but with the dollar amount rather than the number of opportunities).

    We would like to do this for each industry.

    InkedCapture_LI.jpg

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    To display this information on a dashboard, you will need to compile it in a sheet first. I will keep this example short and assume that the data is being compiled on a separate sheet.

    .

    .

    Master Sheet:

    Stage Industry Forecasted Amount

    1 Health $1,000.00

    5 Gov $5,000.00

    3 Other $0.00

    .

    .

    Summary Sheet:

    Industry Won Count Won Amount Opp Count Opp Amount

    HealthForm 1 Form 2 Form 3 Form 4

    GovForm 1 Form 2 Form 3 Form 4

    OtherForm 1 Form 2 Form 3 Form 4

    .

    .

    Form 1:

    =COUNTIFS({Master Sheet Range 1},@cell=[email protected], {Master Sheet Range 2},@cell= 5)

    .

    Form 2:

    =SUMIFS({Master Sheet Range 3}, {Master Sheet Range 1},@cell=[email protected], {Master Sheet Range 2},@cell= 5)

    .

    Form 3:

    =COUNTIFS({Master Sheet Range 1},@cell=[email protected], {Master Sheet Range 2}, AND(NOT(ISBLANK(@cell)), NOT(@cell= 5)))

    .

    Form 4:

    =SUMIFS({Master Sheet Range 3}, {Master Sheet Range 1},@cell=[email protected], {Master Sheet Range 2}, AND(NOT(ISBLANK(@cell)), NOT(@cell= 5)))

    .

    .

    {Master Sheet Range 1}: Industry Column on Master Sheet

    {Master Sheet Range 2}: Stage Column on Master Sheet

    {Master Sheet Range 3}: Forecasted Amount Column on Master Sheet

    .

    .

    From here, you can reference the summary sheet in your widgets to display the compiled data. Let me know if you need any further clarification or help or if this doesn't work for you.

    thinkspi.com

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    edited 01/04/19

    @rowISthe row reference. It replaces the row number and tells the formula to just look in that column for whatever the row is on.

    [Column Name]@rowon row 1 is the same as [Column Name]1.

    [Column Name]@rowon row 2 is the same as [Column Name]2.

    So on and so forth.

    thinkspi.com

  • Thank you, Thank you, Thank you! I got it to work! I did have to change the formula just a bit but it all looks great. I can't thank you enough!

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Excellent! Happy to help.yes

    Out of curiosity... What needed changed (other than column names and sheet references)?

    thinkspi.com

  • Really the only difference was the "@cell=[email protected]" part. I wasn't able to get the "@row"part to work, so I just didn't use it and changed it to "@cell= "Industry" " and it seems to work. I've pasted below the full formula for reference.

    Given Formula

    =SUMIFS({Master Sheet Range 3}, {Master Sheet Range 1},@cell=[email protected], {Master Sheet Range 2}, AND(NOT(ISBLANK(@cell)), NOT(@cell= 5)))

    My Formula

    =SUMIFS({RACS Business Development Range 4}, {RACS Business Development Range 1},@cell= "Closely Held Business", {RACS Business Development Range 2}, AND(NOT(ISBLANK(@cell)), NOT(@cell= "5 - Win")))

    One final question as well: How can I also make this NOT calculate the losses? For instance, the formula below has NOT(@cell= "5 - Win") but I also need it to not calculate the "6 - Loss" .

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    To make the given formula work, the text in the Industry column would have to match EXACTLY on both sheets. Spaces, punctuation and upper/lower case. I don't know if that may have been the issue or not.

    不计算损失,你将包括它in the AND statement in the same manner as the ISBLANK and the 5, so starting with AND, enter...

    AND(NOT(ISBLANK(@cell)), NOT(@cell= "5 - Win"),NOT(@cell= "6 - Loss")))

    thinkspi.com

  • That worked perfectly! Thank you so so much!

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Excellent! Happy to help!yes

    thinkspi.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the公式手册模板!
@Ymandel<\/a> See if this version works:<\/p>

=COUNTIFS([Discharged Date]:[Discharged Date], >DATE(2023, 5, 26), [Date Activated]:[Date Activated], <=(DATE(2023, 6, 2)), [Status]:[Status], OR(@cell = \"Active\", @cell = \"Discharged\"))<\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":107009,"type":"question","name":"I need help with a if formula to get the $ amount total if another column = a specific item.","excerpt":"I want to make a formula in the Column \"A Total\" in the highlighted Cell, that will give me the Sum of $ from Grand Total Column if the A is in the Project column.","snippet":"I want to make a formula in the Column \"A Total\" in the highlighted Cell, that will give me the Sum of $ from Grand Total Column if the A is in the Project column.","categoryID":322,"dateInserted":"2023-06-28T12:55:48+00:00","dateUpdated":null,"dateLastComment":"2023-06-28T13:46:52+00:00","insertUserID":162272,"insertUser":{"userID":162272,"name":"Elayne Smith","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Elayne%20Smith","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!z_neMx7Hvj4!mVDfnuqtMWQ!RH9Ly5uQ-po","dateLastActive":"2023-06-28T13:41:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":162272,"lastUser":{"userID":162272,"name":"Elayne Smith","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Elayne%20Smith","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!z_neMx7Hvj4!mVDfnuqtMWQ!RH9Ly5uQ-po","dateLastActive":"2023-06-28T13:41:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":3,"countViews":26,"score":null,"hot":3375918760,"url":"https:\/\/community.smartsheet.com\/discussion\/107009\/i-need-help-with-a-if-formula-to-get-the-amount-total-if-another-column-a-specific-item","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/107009\/i-need-help-with-a-if-formula-to-get-the-amount-total-if-another-column-a-specific-item","format":"Rich","lastPost":{"discussionID":107009,"commentID":382831,"name":"Re: I need help with a if formula to get the $ amount total if another column = a specific item.","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382831#Comment_382831","dateInserted":"2023-06-28T13:46:52+00:00","insertUserID":162272,"insertUser":{"userID":162272,"name":"Elayne Smith","title":"Project Manager","url":"https:\/\/community.smartsheet.com\/profile\/Elayne%20Smith","photoUrl":"https:\/\/aws.smartsheet.com\/storageProxy\/image\/images\/u!1!z_neMx7Hvj4!mVDfnuqtMWQ!RH9Ly5uQ-po","dateLastActive":"2023-06-28T13:41:35+00:00","banned":0,"punished":0,"private":false,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"image":{"url":"https:\/\/us.v-cdn.net\/6031209\/uploads\/N80WFJ95P6OH\/image.png","urlSrcSet":{"10":"","300":"","800":"","1200":"","1600":""},"alt":"image.png"},"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T13:45:50+00:00","dateAnswered":"2023-06-28T13:05:16+00:00","acceptedAnswers":[{"commentID":382818,"body":"

Hi @Elayne Smith<\/a>,<\/p>

The formula for this would be:<\/p>

=SUMIF(Project:Project, \"A\", [Grand Total]:[Grand Total])<\/p>

\n
\n \n \"image.png\"<\/img><\/a>\n <\/div>\n<\/div>\n

Hope this helps - any issues etc. then just post! 😊<\/span><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]},{"discussionID":106990,"type":"question","name":"JOIN COLLECT for Checkboxes","excerpt":"Hello All, Is there a way to collect information using a JOIN COLLECT formula? Column 2 is Name Column 3 thru 5 ASL. Columns 6 thru 8 is are the names I want to populate based on the checkboxes (ASL). Column 3 can have two checkboxes versus 1. Ultimately I would like all checkboxes that are checked to populate names in…","snippet":"Hello All, Is there a way to collect information using a JOIN COLLECT formula? Column 2 is Name Column 3 thru 5 ASL. Columns 6 thru 8 is are the names I want to populate based on…","categoryID":322,"dateInserted":"2023-06-28T02:32:36+00:00","dateUpdated":null,"dateLastComment":"2023-06-28T12:51:39+00:00","insertUserID":162875,"insertUser":{"userID":162875,"name":"hello1030","url":"https:\/\/community.smartsheet.com\/profile\/hello1030","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nH14DQG3YON84.png","dateLastActive":"2023-06-28T13:09:04+00:00","banned":0,"punished":0,"private":true,"label":"✭"},"updateUserID":null,"lastUserID":162875,"lastUser":{"userID":162875,"name":"hello1030","url":"https:\/\/community.smartsheet.com\/profile\/hello1030","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nH14DQG3YON84.png","dateLastActive":"2023-06-28T13:09:04+00:00","banned":0,"punished":0,"private":true,"label":"✭"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":4,"countViews":21,"score":null,"hot":3375878655,"url":"https:\/\/community.smartsheet.com\/discussion\/106990\/join-collect-for-checkboxes","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106990\/join-collect-for-checkboxes","format":"Rich","lastPost":{"discussionID":106990,"commentID":382809,"name":"Re: JOIN COLLECT for Checkboxes","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/382809#Comment_382809","dateInserted":"2023-06-28T12:51:39+00:00","insertUserID":162875,"insertUser":{"userID":162875,"name":"hello1030","url":"https:\/\/community.smartsheet.com\/profile\/hello1030","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/avatarstock\/nH14DQG3YON84.png","dateLastActive":"2023-06-28T13:09:04+00:00","banned":0,"punished":0,"private":true,"label":"✭"}},"breadcrumbs":[{"name":"Home","url":"https:\/\/community.smartsheet.com\/"},{"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions"}],"groupID":null,"statusID":3,"attributes":{"question":{"status":"accepted","dateAccepted":"2023-06-28T12:51:52+00:00","dateAnswered":"2023-06-28T08:50:42+00:00","acceptedAnswers":[{"commentID":382755,"body":"

Hi @hello1030<\/a> <\/p>

I hope you're well and safe!<\/p>

Try something like this. (I've guessed what your formula would look like, but you'd have to update the column names to match yours)<\/p>

=JOIN(COLLECT([COLUMN2]:[COLUMN2], [COLUMN2]:[COLUMN2], 1, [COLUMN3]:[COLUMN3], \"Support\"), CHAR(10))<\/p>

Did that work\/help? <\/p>

There were a lot of errors in the formula, but it was mainly the brackets { is used for cross-sheet formulas, and you have to close the [ ] square brackets around a column name that doesn't only have one piece of text, and then the structure wasn't correct.<\/em><\/p>

I hope that helps!<\/p>

Be safe, and have a fantastic week!<\/p>

Best,<\/p>

Andrée Starå<\/strong><\/a> | Workflow Consultant \/ CEO @ WORK BOLD<\/strong><\/a><\/p>

Did my post(s) help or answer your question or solve your problem? Please support the Community by <\/em>marking it Insightful\/Vote Up, Awesome, or\/and as the accepted answer<\/em><\/strong>. It will make it easier for others to find a solution or help to answer!<\/em><\/p>"}]}},"status":{"statusID":3,"name":"Accepted","state":"closed","recordType":"discussion","recordSubType":"question"},"bookmarked":false,"unread":false,"category":{"categoryID":322,"name":"Formulas and Functions","url":"https:\/\/community.smartsheet.com\/categories\/formulas-and-functions","allowedDiscussionTypes":[]},"reactions":[{"tagID":3,"urlcode":"Promote","name":"Promote","class":"Positive","hasReacted":false,"reactionValue":5,"count":0},{"tagID":5,"urlcode":"Insightful","name":"Insightful","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":11,"urlcode":"Up","name":"Vote Up","class":"Positive","hasReacted":false,"reactionValue":1,"count":0},{"tagID":13,"urlcode":"Awesome","name":"Awesome","class":"Positive","hasReacted":false,"reactionValue":1,"count":0}],"tags":[]}],"initialPaging":{"nextURL":"https:\/\/community.smartsheet.com\/api\/v2\/discussions?page=2&categoryID=322&includeChildCategories=1&type%5B0%5D=Question&excludeHiddenCategories=1&sort=-hot&limit=3&expand%5B0%5D=all&expand%5B1%5D=-body&expand%5B2%5D=insertUser&expand%5B3%5D=lastUser&status=accepted","prevURL":null,"currentPage":1,"total":10000,"limit":3},"title":"Trending in Formulas and Functions ","subtitle":null,"description":null,"noCheckboxes":true,"containerOptions":[],"discussionOptions":[]}">

Trending in Formulas and Functions