using COUNTIF for two column

zaidan

New Member
Joined
Sep 18, 2008
Messages
34
dear all,

In sheet1, i have "METAR code" in column A and "insert time" in column B, i want to count data with two categories by combine parse of metar code, i.e "METAR WAAA" and "insert time". FYI, i want to put The summaries is in sheet2.

example :
Data :
Excel Workbook
AB
1metar_codeinsert_time
2METAR WAAA 010000Z 23008KT 180V300 1000 RA FEW017CB BKN018 24/23 Q101001/03/2011 0:00
3METAR WAAA 010030Z 06004KT 6000 R03/2000 -RA FEW017CB BKN018 24/24 Q101001/03/2011 0:30
4METAR WAAA 010100Z 06005KT 6000 -RA BKN017 24/24 Q1010=01/03/2011 1:00
5METAR WAAA 010130Z 08006KT 7000 -RA BKN019 25/25 Q1010=01/03/2011 1:30
Sheet1


result i want :
Excel Workbook
ABCDE
100:0000:3001:0001:30
201/01/20111111
Sheet2


thanks for any help.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Zaidan,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
I assume you are matching "METAR WAAA" in sheet1 column “A”, the date in column “A” of sheet2 to the date in column “B” In sheet1, and the times in row 1 in sheet2 to the times in column “B” of sheet1. If so, this formula will conduct a count based on these three criteria.<o:p></o:p>
<o:p></o:p>
=SUMPRODUCT(--(ISNUMBER(SEARCH("METAR WAAA",Sheet1!$A$2:$A$5,1))),--(TEXT(Sheet1!$B$2:$B$5,"hh:mm:ss am/pm")=TEXT(B$1,"hh:mm:ss am/pm")),--(TEXT(Sheet1!$B$2:$B$5,"mm/dd/yyyy")=TEXT($A2,"mm/dd/yyyy")))<o:p></o:p>
<o:p></o:p>
If I have assumed incorrectly please let me know and I can modify the formula.<o:p></o:p>
<o:p></o:p>
Thank you,<o:p></o:p>
<o:p></o:p>
Joseph Marro<o:p></o:p>
<o:p> </o:p>
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

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