Required result with some criteria

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
HI All,

We have the following sheets:-

Sheet1
Book2
ABCDE
1S.No.DateNameTeAmount
2131-08-2020Randyid455040
3201-09-2020Romakod6542676
4301-09-2020Arthurpos452555
5402-09-2020Randypol8526913
6502-09-2020rozicld4225978
7602-09-2020Arthurld641736
Sheet1


Result Sheet
Book2
ABC
1Time PeriodFromTo
231-08-202002-09-2020
3
4NameNumber of times AppersTotal Amount
5Randy231953
Sheet2


Criteria

1. Sheet2!B2 (Date) - Date will be match from Sheet1!B2:B7
2. Sheet2!C2 (Date) - Date will be match from Sheet1!B2:B7
3. Sheet2!A5 (Name) - Name will be match from Sheet1!C2:C7

In the above result sheet Sheet2!B5 is how many time the name is aperead in Sheet1!C2:C7
In the above result sheet Sheet2!C5 is Total when criteria matched
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi,

Enter this in B5 on Result Sheet
=COUNTIFS(Sheet1!C2:C7,A5,Sheet1!B2:B7,">="&B2,Sheet1!B2:B7,"<="&C2)

Enter this in C5 on Result Sheet
=SUMIFS(Sheet1!E2:E7,Sheet1!C2:C7,A5,Sheet1!B2:B7,">="&B2,Sheet1!B2:B7,"<="&C2)
 
Upvote 0
How about
=countifs(sheet1!B:B,">="&B2,Sheet1!B:B,"<="&C2,Sheet1!C:C,A5)
and
=sumifs(Sheet1!E:E,sheet1!B:B,">="&B2,Sheet1!B:B,"<="&C2,Sheet1!C:C,A5)
 
Upvote 0
Thanks Hrayani & Fluffji

solution are working for me

thanks
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,323
Members
449,077
Latest member
jmsotelo

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