PC Review


Reply
Thread Tools Rate Thread

Countif w/semicolon separated values

 
 
crazymfr
Guest
Posts: n/a
 
      7th Jul 2008
I have aggregated data in columns that were imported from web forms and are
separated by semicolons. The questions was select your preferred day of week
with a select all that apply option. Any time someone chose more than one
day, it aggregates the response together in the same cell (ie choosing Monday
and Thursday returned a response of "Monday; Thursday" in B1...etc.)

I want to be able to count each instance of Monday regardless of what other
days per response.

Monday - Total
Tuesday - Total
Wednesday - Total
Thursday - Total
Friday - Total.

Below is a sample of data. Please help me! Thanks you.

Wednesday
Monday; Tuesday; Wednesday; Thursday
Tuesday; Thursday; Friday
Tuesday; Wednesday; Thursday
Monday
Monday; Tuesday; Wednesday; Thursday
Thursday
Tuesday; Wednesday
Tuesday; Wednesday; Thursday
Tuesday; Wednesday; Thursday
Monday; Wednesday; Thursday
Monday; Wednesday; Friday
Tuesday; Friday
Thursday
Monday; Wednesday
Tuesday; Wednesday

 
Reply With Quote
 
 
 
 
BobT
Guest
Posts: n/a
 
      7th Jul 2008
Countif(range of cells, "*Monday*")
Countif(range of cells, "*Tuesday*")
etc.

"crazymfr" wrote:

> I have aggregated data in columns that were imported from web forms and are
> separated by semicolons. The questions was select your preferred day of week
> with a select all that apply option. Any time someone chose more than one
> day, it aggregates the response together in the same cell (ie choosing Monday
> and Thursday returned a response of "Monday; Thursday" in B1...etc.)
>
> I want to be able to count each instance of Monday regardless of what other
> days per response.
>
> Monday - Total
> Tuesday - Total
> Wednesday - Total
> Thursday - Total
> Friday - Total.
>
> Below is a sample of data. Please help me! Thanks you.
>
> Wednesday
> Monday; Tuesday; Wednesday; Thursday
> Tuesday; Thursday; Friday
> Tuesday; Wednesday; Thursday
> Monday
> Monday; Tuesday; Wednesday; Thursday
> Thursday
> Tuesday; Wednesday
> Tuesday; Wednesday; Thursday
> Tuesday; Wednesday; Thursday
> Monday; Wednesday; Thursday
> Monday; Wednesday; Friday
> Tuesday; Friday
> Thursday
> Monday; Wednesday
> Tuesday; Wednesday
>

 
Reply With Quote
 
crazymfr
Guest
Posts: n/a
 
      7th Jul 2008
Thank you. This works.

Is there any way to preserve cell references instead of direct quoted text?

Your solution will work for me, but it would be a lot easier if I could
reference Monday as a cell reference.

Let me know, but thank you for this solution.

"BobT" wrote:

> Countif(range of cells, "*Monday*")
> Countif(range of cells, "*Tuesday*")
> etc.
>
> "crazymfr" wrote:
>
> > I have aggregated data in columns that were imported from web forms and are
> > separated by semicolons. The questions was select your preferred day of week
> > with a select all that apply option. Any time someone chose more than one
> > day, it aggregates the response together in the same cell (ie choosing Monday
> > and Thursday returned a response of "Monday; Thursday" in B1...etc.)
> >
> > I want to be able to count each instance of Monday regardless of what other
> > days per response.
> >
> > Monday - Total
> > Tuesday - Total
> > Wednesday - Total
> > Thursday - Total
> > Friday - Total.
> >
> > Below is a sample of data. Please help me! Thanks you.
> >
> > Wednesday
> > Monday; Tuesday; Wednesday; Thursday
> > Tuesday; Thursday; Friday
> > Tuesday; Wednesday; Thursday
> > Monday
> > Monday; Tuesday; Wednesday; Thursday
> > Thursday
> > Tuesday; Wednesday
> > Tuesday; Wednesday; Thursday
> > Tuesday; Wednesday; Thursday
> > Monday; Wednesday; Thursday
> > Monday; Wednesday; Friday
> > Tuesday; Friday
> > Thursday
> > Monday; Wednesday
> > Tuesday; Wednesday
> >

 
Reply With Quote
 
Stefi
Guest
Posts: n/a
 
      7th Jul 2008
If you put days in F1,F2 then
=SUMPRODUCT(--(ISERROR(SEARCH(F1,$B$1:$B$16))))
Regards,
Stefi

„crazymfr” ezt *rta:

> Thank you. This works.
>
> Is there any way to preserve cell references instead of direct quoted text?
>
> Your solution will work for me, but it would be a lot easier if I could
> reference Monday as a cell reference.
>
> Let me know, but thank you for this solution.
>
> "BobT" wrote:
>
> > Countif(range of cells, "*Monday*")
> > Countif(range of cells, "*Tuesday*")
> > etc.
> >
> > "crazymfr" wrote:
> >
> > > I have aggregated data in columns that were imported from web forms and are
> > > separated by semicolons. The questions was select your preferred day of week
> > > with a select all that apply option. Any time someone chose more than one
> > > day, it aggregates the response together in the same cell (ie choosing Monday
> > > and Thursday returned a response of "Monday; Thursday" in B1...etc.)
> > >
> > > I want to be able to count each instance of Monday regardless of what other
> > > days per response.
> > >
> > > Monday - Total
> > > Tuesday - Total
> > > Wednesday - Total
> > > Thursday - Total
> > > Friday - Total.
> > >
> > > Below is a sample of data. Please help me! Thanks you.
> > >
> > > Wednesday
> > > Monday; Tuesday; Wednesday; Thursday
> > > Tuesday; Thursday; Friday
> > > Tuesday; Wednesday; Thursday
> > > Monday
> > > Monday; Tuesday; Wednesday; Thursday
> > > Thursday
> > > Tuesday; Wednesday
> > > Tuesday; Wednesday; Thursday
> > > Tuesday; Wednesday; Thursday
> > > Monday; Wednesday; Thursday
> > > Monday; Wednesday; Friday
> > > Tuesday; Friday
> > > Thursday
> > > Monday; Wednesday
> > > Tuesday; Wednesday
> > >

 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      7th Jul 2008
Try this:

A1:A7 = Monday - Sunday

=COUNTIF(range,"*"&A1&"*")

Copy down as needed.

--
Biff
Microsoft Excel MVP


"crazymfr" <(E-Mail Removed)> wrote in message
news:8450C4EA-96B0-474D-A3E8-(E-Mail Removed)...
> Thank you. This works.
>
> Is there any way to preserve cell references instead of direct quoted
> text?
>
> Your solution will work for me, but it would be a lot easier if I could
> reference Monday as a cell reference.
>
> Let me know, but thank you for this solution.
>
> "BobT" wrote:
>
>> Countif(range of cells, "*Monday*")
>> Countif(range of cells, "*Tuesday*")
>> etc.
>>
>> "crazymfr" wrote:
>>
>> > I have aggregated data in columns that were imported from web forms and
>> > are
>> > separated by semicolons. The questions was select your preferred day
>> > of week
>> > with a select all that apply option. Any time someone chose more than
>> > one
>> > day, it aggregates the response together in the same cell (ie choosing
>> > Monday
>> > and Thursday returned a response of "Monday; Thursday" in B1...etc.)
>> >
>> > I want to be able to count each instance of Monday regardless of what
>> > other
>> > days per response.
>> >
>> > Monday - Total
>> > Tuesday - Total
>> > Wednesday - Total
>> > Thursday - Total
>> > Friday - Total.
>> >
>> > Below is a sample of data. Please help me! Thanks you.
>> >
>> > Wednesday
>> > Monday; Tuesday; Wednesday; Thursday
>> > Tuesday; Thursday; Friday
>> > Tuesday; Wednesday; Thursday
>> > Monday
>> > Monday; Tuesday; Wednesday; Thursday
>> > Thursday
>> > Tuesday; Wednesday
>> > Tuesday; Wednesday; Thursday
>> > Tuesday; Wednesday; Thursday
>> > Monday; Wednesday; Thursday
>> > Monday; Wednesday; Friday
>> > Tuesday; Friday
>> > Thursday
>> > Monday; Wednesday
>> > Tuesday; Wednesday
>> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif w/semicolon separated values AND Filter crazymfr Microsoft Excel Worksheet Functions 1 7th Jul 2008 10:53 PM
Column with semicolon-separated values nsv Microsoft Excel Programming 3 22nd Feb 2006 12:22 PM
semicolon separated CSV file =?Utf-8?B?U3RlZmk=?= Microsoft Excel Misc 4 20th Oct 2004 03:07 PM
semicolon separated values saybut Microsoft Excel Misc 0 30th Sep 2004 01:17 PM
semicolon separated values saybut Microsoft Excel Misc 2 30th Sep 2004 12:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:04 PM.