Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Need formula and not sure where to start! Matching criteria.

Hello, I have been searching for two days on the internet and haven't found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific letters)
than replace those cells info with a "1" if not than replace cells with a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When I
attempt this, I get a Circle Error.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default Need formula and not sure where to start! Matching criteria.

Theres multiple ways of doing this but the best would be not to change the
info at all. If you want to do counts on strings then you can use countif.

So you can do =Countif($e$1:$e$6,"SF")

"Greg" wrote:

Hello, I have been searching for two days on the internet and haven't found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific letters)
than replace those cells info with a "1" if not than replace cells with a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When I
attempt this, I get a Circle Error.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 331
Default Need formula and not sure where to start! Matching criteria.

That would work if I was counting the columns, but in fact I am attempting to
sum rows.

Let me see if I can explain this better. :)

I have a huge football picks pool weekly. Each row is a CSV file of each
user with each column being an NFL team initials that they chose. I need to
tally up the right picks in each row. Thus I wanted to have each winning
pick....ie...the winning initials to be a "1" and then at the end of each
users row of picks, you would generate the total winning picks. Now with
several users, I have a long column of either or type data. So I wanted to
take that entire column for GAME 1 lets say and create a value for a win or
loss.

Does this make sense? Or is this too complicated?

"akphidelt" wrote:

Theres multiple ways of doing this but the best would be not to change the
info at all. If you want to do counts on strings then you can use countif.

So you can do =Countif($e$1:$e$6,"SF")

"Greg" wrote:

Hello, I have been searching for two days on the internet and haven't found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific letters)
than replace those cells info with a "1" if not than replace cells with a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When I
attempt this, I get a Circle Error.

Thanks in advance.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 331
Default Need formula and not sure where to start! Matching criteria.

I have found a time consuming and non-dynamic way of doing this;

Find and Replace.....SF with 1. This is assuming that the San Francisco
49ers won the game right, now I have to find and replace all winning team
initials for that week. Then at the end of each users row. I have a sum of
the entire row of 1's. Equaling a total of winning picks for that user. I
was hoping for a formula that would do that dynamically, so I could just
change the winning team for that game and that week.

"Greg" wrote:

That would work if I was counting the columns, but in fact I am attempting to
sum rows.

Let me see if I can explain this better. :)

I have a huge football picks pool weekly. Each row is a CSV file of each
user with each column being an NFL team initials that they chose. I need to
tally up the right picks in each row. Thus I wanted to have each winning
pick....ie...the winning initials to be a "1" and then at the end of each
users row of picks, you would generate the total winning picks. Now with
several users, I have a long column of either or type data. So I wanted to
take that entire column for GAME 1 lets say and create a value for a win or
loss.

Does this make sense? Or is this too complicated?

"akphidelt" wrote:

Theres multiple ways of doing this but the best would be not to change the
info at all. If you want to do counts on strings then you can use countif.

So you can do =Countif($e$1:$e$6,"SF")

"Greg" wrote:

Hello, I have been searching for two days on the internet and haven't found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific letters)
than replace those cells info with a "1" if not than replace cells with a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When I
attempt this, I get a Circle Error.

Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need formula and not sure where to start! Matching criteria.

Try this:

A2 = user name
B2:Q2 = weekly picks

List the weekly winners in a range of cells. They can be listed either
vertically or horizontally. Let's say the winners are listed in the range
X2:X17

To get the users correct number of picks enter this formula in say, R2:

=SUMPRODUCT(COUNTIF(B2:Q2,X$2:X$17))

Then you can copy down for other users.

I used to run a pool. Man was it a PITA! Doing it in Excel was the easy
part. Trying to get everyone to make their picks in a "timely manner" was a
freakin task!

--
Biff
Microsoft Excel MVP


"Greg" wrote in message
...
That would work if I was counting the columns, but in fact I am attempting
to
sum rows.

Let me see if I can explain this better. :)

I have a huge football picks pool weekly. Each row is a CSV file of each
user with each column being an NFL team initials that they chose. I need
to
tally up the right picks in each row. Thus I wanted to have each winning
pick....ie...the winning initials to be a "1" and then at the end of each
users row of picks, you would generate the total winning picks. Now with
several users, I have a long column of either or type data. So I wanted
to
take that entire column for GAME 1 lets say and create a value for a win
or
loss.

Does this make sense? Or is this too complicated?

"akphidelt" wrote:

Theres multiple ways of doing this but the best would be not to change
the
info at all. If you want to do counts on strings then you can use
countif.

So you can do =Countif($e$1:$e$6,"SF")

"Greg" wrote:

Hello, I have been searching for two days on the internet and haven't
found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific
letters)
than replace those cells info with a "1" if not than replace cells with
a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When
I
attempt this, I get a Circle Error.

Thanks in advance.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 331
Default Need formula and not sure where to start! Matching criteria.

Great, thank you...I will give this a try.

I have a really nice cformsII on my blog that allows for radio button data
forms that push to data tables and I download those as CSV files. It emails
everyone there picks and me as well. This all works so automated but this
was the clincher. Thanks much!

And yes, getting those picks in is the hard part. But with cash at
risk....they do pretty good!

"T. Valko" wrote:

Try this:

A2 = user name
B2:Q2 = weekly picks

List the weekly winners in a range of cells. They can be listed either
vertically or horizontally. Let's say the winners are listed in the range
X2:X17

To get the users correct number of picks enter this formula in say, R2:

=SUMPRODUCT(COUNTIF(B2:Q2,X$2:X$17))

Then you can copy down for other users.

I used to run a pool. Man was it a PITA! Doing it in Excel was the easy
part. Trying to get everyone to make their picks in a "timely manner" was a
freakin task!

--
Biff
Microsoft Excel MVP


"Greg" wrote in message
...
That would work if I was counting the columns, but in fact I am attempting
to
sum rows.

Let me see if I can explain this better. :)

I have a huge football picks pool weekly. Each row is a CSV file of each
user with each column being an NFL team initials that they chose. I need
to
tally up the right picks in each row. Thus I wanted to have each winning
pick....ie...the winning initials to be a "1" and then at the end of each
users row of picks, you would generate the total winning picks. Now with
several users, I have a long column of either or type data. So I wanted
to
take that entire column for GAME 1 lets say and create a value for a win
or
loss.

Does this make sense? Or is this too complicated?

"akphidelt" wrote:

Theres multiple ways of doing this but the best would be not to change
the
info at all. If you want to do counts on strings then you can use
countif.

So you can do =Countif($e$1:$e$6,"SF")

"Greg" wrote:

Hello, I have been searching for two days on the internet and haven't
found
anyone attempting this so far.

I would like to find a formula for this:

Cell's E1 through E6, if they match said criteria (ie...specific
letters)
than replace those cells info with a "1" if not than replace cells with
a
"0".

Thus I can sum my rows with 1's and 0's. Is this possible?

EXAMPLE:
E1
SF
if E1 matches "SF" then replace "SF" with a number value of "1". When
I
attempt this, I get a Circle Error.

Thanks in advance.




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
MAX value matching multiple criteria mwd Excel Worksheet Functions 10 May 12th 08 07:42 PM
I need a criteria expression to not include records that start wit Steve A Excel Worksheet Functions 2 August 16th 06 07:57 PM
Need formula that Counts items matching criteria using two columns Juana Cafe Excel Worksheet Functions 4 March 3rd 06 08:41 PM
How can find a value using two different matching criteria? Dinesh Excel Worksheet Functions 6 February 9th 06 11:20 PM
Finding One Value, Matching Three Criteria cattle mgr Excel Discussion (Misc queries) 2 August 29th 05 08:32 PM


All times are GMT +1. The time now is 02:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"