sumif with detail

R

RKS

Hi all,
I have sheet, A1 is name, B1 is amt and C is result. I want to sum of amt
who is late and ontime. and also wants name who is late or ontime. can it is
possible. please help me and tell me how is possible. I can show u example.

A1 B1 C1
Name amt Result
a 100 late
b 200 ontime
c 300 late
d 400 late
e 500 ontime
f 600 ontime
g 700 ontime
h 800 late

sum of late 1600 (a,c,d,h)----> name of late person
sum of ontime 2000 (b,e,f,g)----> name of ontime person

please help me
thanks
RKS
 
G

Gary''s Student

In cell D1 enter:
=SUMPRODUCT((B2:B1000),--(C2:C1000="ontime"))
In cell D2 enter:
=SUMPRODUCT((B2:B1000),--(C2:C1000="late"))


To get the names is easier.

Click on C1 and pull-down:

Data > Filter > AutoFilter
 
R

RKS

Thanks Gary for giving responce. formula is right but my problem still. I
need name also who is late and ontime then my problem is solve. dont wants
use autofilter which u recomended, after finished this then i can protect
sheet and send user to enter data in some cell. so please help me and tell me
how i can get name in one line like this 1600 (a,c,d,h)
thaks for reply
rks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top