Using SUMIF with specific assigned values

ExcelGuy12345

New Member
Joined
Feb 1, 2018
Messages
12
Hi!

I'm trying to compile a total time for a job by referencing the name of the job's component.

I'd like to be able to assign a value of 1 minute to "filing", 2 minutes to "retrieval", 1 minute to "processing", etc. and have the time compile based upon the job entered in the column. I understand this should be fairly basic, but I can't seem to get it to work out right. Any help would be much appreciated. Thanks!
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hmm, it seems you could build a reference table that lists the jobs in one column, and the time associated with the job in the column next to it. Then for your time, list each of the jobs you're evaluating. Use a vlookup formula to point to the job in question, and return the time that matches the job in the table you built. At the bottom, just sum the time for the total?

Code:
=vlookup(job name, table range, column number containing the desired value, FALSE for exact match)
 
Upvote 0
SUMIF or SUMIFS, I hardly ever use.
My first choice is to perform any summary via a Pivot Table.
My second choice, I use Tables, is to place a SUBTOTAL(9,...) above the Table and utilize filters or even Table Slicers.:cool:
 
Upvote 0
Hi using look up function, if this is not your expected result pls reply back


 
Upvote 0
Upvote 0
Thank you! I'm having trouble with the end of the formula, I think.

Mine looks like this: =VLOOKUP("SAW",SHEET2!,$A$1:$B$3,FALSE) and I'm getting an error message.
 
Upvote 0
Okay, my VLOOKUP is working correctly, but now I need to have the keyword (in this case, my job) in Column "B" trigger the VLOOKUP in Column "F". Is there a way to do this?
 
Upvote 0
Mine looks like this: =VLOOKUP("SAW",SHEET2!,$A$1:$B$3,FALSE) and I'm getting an error message.
Okay, my VLOOKUP is working correctly, but now I need to have the keyword (in this case, my job) in Column "B" trigger the VLOOKUP in Column "F". Is there a way to do this?

First off, your vlookup is missing the column number of which column you're attempting to pull the information from. =VLOOKUP("SAW",SHEET2!,$A$1:$B$3,2,FALSE) I put "2" as a place holder to show where you're vlookup is failing.

Use this in your column F cells to return the values you're looking for. Without knowing the table range of columns you're attempting to return I just returned the second (2) column within the table array. Change it to fit your file.

=IF(COUNTIF($B:$B,"MY JOB"),VLOOKUP("MY JOB",$B:$C,2,FALSE),"")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top