Excel Formula for Count the Product and Last date of entry

Vishaal

Well-known Member
Joined
Mar 16, 2019
Messages
533
Office Version
  1. 2010
  2. 2007
Platform
  1. Windows
  2. Web
Hi, we have the following table where we want some results
1- total count of data (as result sheet)
2-Last date of entry for the product

Data
SnoDateP CodeC Name
125.06.2015256DPDFDFP
226.06.201565DFSFDSFD
326.06.2015325DDFSFS
428.06.2015256DPDFDFP
530.06.2015658DHJGHKGK
601.07.2015965DRYTRYY
702.07.2015745DFJJFGJ
802.07.2015852DJJTRE
903.07.2015256DPDFDFP
1003.07.2015325DDFSFS
1103.07.2015658DHJGHKGK
1203.07.2015745DFJJFGJ
1306.07.2015658DHJGHKGK
1406.07.2015852DJJTRE


Result Data (you can show this data on same sheet or sheet2)
P CodeCountDate
256D303.07.2015
65D126.06.2015
325D203.07.2015
658D306.07.2015
965D101.07.2015
745D203.07.2015
852D206.07.2015


Kindly provide the excel formula
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
you are showing versions of excel as 2007 and 2010 - is that what you are using , there are a lot of functions in later versions to help do this

MAXIFS()

UNIQUE()

also the dates are they real dates excel recognises or text
right click on the date cell - and select general - you should see a number and not the date
 
Upvote 0
you are showing versions of excel as 2007 and 2010 - is that what you are using , there are a lot of functions in later versions to help do this

MAXIFS()

UNIQUE()

also the dates are they real dates excel recognises or text
right click on the date cell - and select general - you should see a number and not the date
excel version is 2007 and dates are real, its a demo data so typed it manually
we will take care about that - date in excel
 
Upvote 0
ok, and the date question ?
 
Upvote 0
ok, and the date question ?
sorry, date format

we will post date as per excel format from next time in demo data also

thanks etaf, kindly provide the any solution
 
Upvote 0
you can use
=COUNTIF($C$2:$C$15,G3)
to get the count
and
=MAX(IF($C$2:$C$15=G3,$B$2:$B$15)) - using Control+shift+enter to get an array {} around the formula for date
Assuming the date is actually a date and NOT text

i have added to column K & L for you to see an compare

Book3
ABCDEFGHIJKLM
1SnoDateP CodeC Name
216/25/15256DPDFDFPP CodeCountDate
326/26/1565DFSFDSFD256D303.07.201537/3/15
436/26/15325DDFSFS65D126.06.201516/26/15
546/28/15256DPDFDFP325D203.07.201527/3/15
656/30/15658DHJGHKGK658D306.07.201537/6/15
767/1/15965DRYTRYY965D101.07.201517/1/15
877/2/15745DFJJFGJ745D203.07.201527/3/15
987/2/15852DJJTRE852D206.07.201527/6/15
1097/3/15256DPDFDFP
11107/3/15325DDFSFS
12117/3/15658DHJGHKGK
13127/3/15745DFJJFGJ
14137/6/15658DHJGHKGK
15147/6/15852DJJTRE
16
Sheet1
Cell Formulas
RangeFormula
K3:K9K3=COUNTIF($C$2:$C$15,G3)
L3:L9L3=MAX(IF($C$2:$C$15=G3,$B$2:$B$15))
 
Upvote 0
Solution

Forum statistics

Threads
1,215,097
Messages
6,123,079
Members
449,094
Latest member
mystic19

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