How to combined VLOOKUP and SUMIFS

Hi everyone,
I encounter one issue creating formula and linking between two different sheets. I don't know which formula to use but let me share with you what I have done and if you all have a solution to my problem, that would be great.
I'm working on a financing sheet, it will be a lot about proposed cost, final cost, site and activity cost.
- The first worksheet is about Finance Master Loading Data - this is where the client insert the site location, activity cost, original cost baseline, final cost baseline
- In site location we have site 1, site 2, site 3, site 4, site 5, site 6, site 7 and it continue
- Activity Cost is where cost of doing the activity. e.g.: HVAC, Security, MISC
- The column in the worksheet is "Site", "Activity Cost", "Original Cost Baseline" and "Final Cost Baseline"
- Another worksheet is where we compile this according the "Activity Cost".
- In the second worksheet, what i'll do is in the"HVAC"column is put this formula:
- =SUMIFS({Finance_Master_Loading_Data Range 2}, {Finance_Master_Loading_Data Range 3}, "Site 1", {Finance_Master_Loading_Data Range 6}, "HVAC")
- This formula is to calculate cost on each "site"that do "HVAC"activity.
- {Finance_Master_Loading_Data Range 2} => Final Cost Baseline.
- {Finance_Master_Loading_Data Range 3}, "Site 1" => the site.
- {Finance_Master_Loading_Data Range 6}, "HVAC" => Activity Cost
- And it return value of 0.00, why???
- I have triedCOUNTIFS,the result still return to 0.00
Please, I need your help to this matter. Let me know if you need further clarifications.
Thank you
Comments
-
Paul Newcome ✭✭✭✭✭✭
-
Kamil Ismail ✭✭✭✭
Here I provide you the screenshots
-
Paul Newcome ✭✭✭✭✭✭
A few questions and observations...
1. Are you trying to sum dollar amounts or count how many times that particular criteria is met? The syntax for the formula you have in your screenshot is that of a COUNTIFS, but you are using a SUMIFS.
2. What type of data is in{Finance_Master_Loading_Data Range 1}?
3. What type of data is in{Finance_Master_Loading_Data Range 2}?
4. I noticed some inconsistencies in your data. In some rows you have "Site 1" (space) and in other rows your have "Site1" (no space). Unless that is intentional, it will skew your data.
thinkspi.com
Help Article Resources
Categories
Please use the formula I provided. It was intentional for the character \"~\" to be included. <\/p>
=MID(Name@row, FIND(\"~\", SUBSTITUTE(Name@row, \"-\", \"~\", 5)) + 1, FIND(\"~\", SUBSTITUTE(Name@row, \"-\", \"~\", 6)) - 1 - FIND(\"~\", SUBSTITUTE(Name@row, \"-\", \"~\", 5)))<\/p>
Kelly<\/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":106552,"type":"question","name":"Problem w\/Index - Match formula","excerpt":"I using the following formula, =INDEX({Contract Focal Point}, MATCH([Contract No.]@row, {Contract No.}), 0) And it works for the first row when i input in the contract number into the column. On subsequent rows when i input the contract number it pulls back incorrect information and if I put in a fictious number it pulls…","categoryID":322,"dateInserted":"2023-06-16T15:13:32+00:00","dateUpdated":null,"dateLastComment":"2023-06-16T15:36:24+00:00","insertUserID":162467,"insertUser":{"userID":162467,"name":"Ed Smartsheet","title":"Mr","url":"https:\/\/community.smartsheet.com\/profile\/Ed%20Smartsheet","photoUrl":"https:\/\/lh3.googleusercontent.com\/a\/AATXAJyYOjKt3k3tneIFbUPuoJzZbnd9quLS-Wdt5b7l=s96-c","dateLastActive":"2023-06-16T19:45:18+00:00","banned":0,"punished":0,"private":false,"label":"✭"},"updateUserID":null,"lastUserID":91566,"lastUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-06-16T17:50:53+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"},"pinned":false,"pinLocation":null,"closed":false,"sink":false,"countComments":2,"countViews":32,"score":null,"hot":3373859396,"url":"https:\/\/community.smartsheet.com\/discussion\/106552\/problem-w-index-match-formula","canonicalUrl":"https:\/\/community.smartsheet.com\/discussion\/106552\/problem-w-index-match-formula","format":"Rich","tagIDs":[254],"lastPost":{"discussionID":106552,"commentID":381031,"name":"Re: Problem w\/Index - Match formula","url":"https:\/\/community.smartsheet.com\/discussion\/comment\/381031#Comment_381031","dateInserted":"2023-06-16T15:36:24+00:00","insertUserID":91566,"insertUser":{"userID":91566,"name":"Genevieve P.","title":"Community Manager","url":"https:\/\/community.smartsheet.com\/profile\/Genevieve%20P.","photoUrl":"https:\/\/us.v-cdn.net\/6031209\/uploads\/userpics\/KHY4Y67W0VRX\/nF76D5N9MFB28.png","dateLastActive":"2023-06-16T17:50:53+00:00","banned":0,"punished":0,"private":false,"label":"Employee Admin"}},"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-16T19:45:15+00:00","dateAnswered":"2023-06-16T15:36:24+00:00","acceptedAnswers":[{"commentID":381031,"body":"
=INDEX({Contract Focal Point}, MATCH([Contract No.]@row, {Contract No.}, 0))<\/strong><\/p>