If then count

mhay92

New Member
Joined
Apr 24, 2014
Messages
8
Hi

I have tried searching for the answer to the following but not sure how others might phrase what I need.

I have a workbook with two sheets.

1st Sheet = Data
2nd Sheet = Data Tally

In the first sheet I have the columns A(ID No) B(Surname) C(Forename) D(Course) E(Days Taken)
If someone goes on a course the data above gets entered in. If they then attend another course a new record gets created underneath with the same ID No. In theory there could be 20 rows of courses for just one person.

What I need is to tally the amount of days taken.
i.e. if ID No= x then Count Days Taken.

This will then go into sheet 2 under the tallys.

Is this possible?

Thanks in advance
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You need:

SUMIF(range, criteria, [sum_range])

So in your case the range will be eg Data $A$1:$A$????, the criteria is your ID number and the sum range Data $E1$:$E$????.
 
Upvote 0

Forum statistics

Threads
1,226,588
Messages
6,191,891
Members
453,684
Latest member
Gretchenhines

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