vookup and counting

DEVIL4400

New Member
Joined
Jun 7, 2011
Messages
1
i have a excel sheet like this as below


no name started date end date no days remarks

2345 john 23/04/2010 27/04/2010 5 annual leave
2344 muray 09/02/2010 10/10/2010 30 annual leave
2345 john 1/1 /2011 7/1/2011 8 annual leave



i wanted to the john total days which have taken for annual leave and view its using vlook up in another sheet and seperatly view total number of days he has taken
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
i have a excel sheet like this as below


no name started date end date no days remarks

2345 john 23/04/2010 27/04/2010 5 annual leave
2344 muray 09/02/2010 10/10/2010 30 annual leave
2345 john 1/1 /2011 7/1/2011 8 annual leave



i wanted to the john total days which have taken for annual leave and view its using vlook up in another sheet and seperatly view total number of days he has taken


Try SUMIF

=SUMIF(B1:B100,"John",E1:E100)

will return 13

SUMIF is ( "Key" Range, "KEY", "Value to Sum" Range )


replace John with a Cell reference say B1
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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