Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Help! Array formula for data that uses words instead of numbers

I have a Little League schedule with 129 rows that looks like this:

A B C
D E
1 9/8 Braves
Orioles vs Nationals
2 9/9 Pirates Red Sox vs Braves Orioles
3 9/10 Muckdogs vs Orioles Red Sox

I want to enter a formula in Column E that tells Excel to check cells b1:d1
in each row and if any cell contains the name orioles, regardless of whether
it's alone or as part of a match-up, then the text "baseball today" should
appear in the corresponding row in Column E. I'd use this formula in column
E for each row of my spreadsheet. I tried using the formula
=if(ISNUMBER(SEARCH("*orioles*", b1:d1)), "baseball today","") and
Ctrl+Shift+Ent but it doesn't work. If I change the formula so that instead
of an array, it references the specific cell that contains the word orioles,
for example instead of using b1:d1 just using d1, the formula works. Can
anyone help me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help! Array formula for data that uses words instead of numbers

Try this:

=IF(COUNTIF(B1:D1,"*orioles*"),"baseball today","")

--
Biff
Microsoft Excel MVP


"cecij22" wrote in message
...
I have a Little League schedule with 129 rows that looks like this:

A B C
D E
1 9/8 Braves
Orioles vs Nationals
2 9/9 Pirates Red Sox vs Braves Orioles
3 9/10 Muckdogs vs Orioles Red Sox

I want to enter a formula in Column E that tells Excel to check cells
b1:d1
in each row and if any cell contains the name orioles, regardless of
whether
it's alone or as part of a match-up, then the text "baseball today" should
appear in the corresponding row in Column E. I'd use this formula in
column
E for each row of my spreadsheet. I tried using the formula
=if(ISNUMBER(SEARCH("*orioles*", b1:d1)), "baseball today","") and
Ctrl+Shift+Ent but it doesn't work. If I change the formula so that
instead
of an array, it references the specific cell that contains the word
orioles,
for example instead of using b1:d1 just using d1, the formula works. Can
anyone help me?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 793
Default Help! Array formula for data that uses words instead of numbers

One of the solutions is to concatenate the cells (b1&c1&d1) and search for
the string in that cell...

"cecij22" wrote:

I have a Little League schedule with 129 rows that looks like this:

A B C
D E
1 9/8 Braves
Orioles vs Nationals
2 9/9 Pirates Red Sox vs Braves Orioles
3 9/10 Muckdogs vs Orioles Red Sox

I want to enter a formula in Column E that tells Excel to check cells b1:d1
in each row and if any cell contains the name orioles, regardless of whether
it's alone or as part of a match-up, then the text "baseball today" should
appear in the corresponding row in Column E. I'd use this formula in column
E for each row of my spreadsheet. I tried using the formula
=if(ISNUMBER(SEARCH("*orioles*", b1:d1)), "baseball today","") and
Ctrl+Shift+Ent but it doesn't work. If I change the formula so that instead
of an array, it references the specific cell that contains the word orioles,
for example instead of using b1:d1 just using d1, the formula works. Can
anyone help me?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Help! Array formula for data that uses words instead of number

I just started exploring the world of functions in excel...well things that
are more complicated than just summing a range of numbers! Looking at the
formula, it looks way less complicated than what I was making it out to be
lol. Thanks so much. It worked perfectly.

"T. Valko" wrote:

Try this:

=IF(COUNTIF(B1:D1,"*orioles*"),"baseball today","")

--
Biff
Microsoft Excel MVP


"cecij22" wrote in message
...
I have a Little League schedule with 129 rows that looks like this:

A B C
D E
1 9/8 Braves
Orioles vs Nationals
2 9/9 Pirates Red Sox vs Braves Orioles
3 9/10 Muckdogs vs Orioles Red Sox

I want to enter a formula in Column E that tells Excel to check cells
b1:d1
in each row and if any cell contains the name orioles, regardless of
whether
it's alone or as part of a match-up, then the text "baseball today" should
appear in the corresponding row in Column E. I'd use this formula in
column
E for each row of my spreadsheet. I tried using the formula
=if(ISNUMBER(SEARCH("*orioles*", b1:d1)), "baseball today","") and
Ctrl+Shift+Ent but it doesn't work. If I change the formula so that
instead
of an array, it references the specific cell that contains the word
orioles,
for example instead of using b1:d1 just using d1, the formula works. Can
anyone help me?




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Help! Array formula for data that uses words instead of number

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"cecij22" wrote in message
...
I just started exploring the world of functions in excel...well things that
are more complicated than just summing a range of numbers! Looking at the
formula, it looks way less complicated than what I was making it out to be
lol. Thanks so much. It worked perfectly.

"T. Valko" wrote:

Try this:

=IF(COUNTIF(B1:D1,"*orioles*"),"baseball today","")

--
Biff
Microsoft Excel MVP


"cecij22" wrote in message
...
I have a Little League schedule with 129 rows that looks like this:

A B C
D E
1 9/8 Braves
Orioles vs Nationals
2 9/9 Pirates Red Sox vs Braves
Orioles
3 9/10 Muckdogs vs Orioles Red
Sox

I want to enter a formula in Column E that tells Excel to check cells
b1:d1
in each row and if any cell contains the name orioles, regardless of
whether
it's alone or as part of a match-up, then the text "baseball today"
should
appear in the corresponding row in Column E. I'd use this formula in
column
E for each row of my spreadsheet. I tried using the formula
=if(ISNUMBER(SEARCH("*orioles*", b1:d1)), "baseball today","") and
Ctrl+Shift+Ent but it doesn't work. If I change the formula so that
instead
of an array, it references the specific cell that contains the word
orioles,
for example instead of using b1:d1 just using d1, the formula works.
Can
anyone help me?






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
Can I have words representing numbers in a formula? PeterM Excel Discussion (Misc queries) 4 August 7th 06 09:29 PM
IF formula in Excel / Replace numbers with 'words' Emsmaps Excel Discussion (Misc queries) 1 April 7th 06 11:01 PM
frequency of occurance of all words in 2-D array Richard Excel Discussion (Misc queries) 2 March 21st 06 03:13 PM
Transpose words and numbers into array of different proportions Manfred Excel Discussion (Misc queries) 5 February 9th 06 01:07 AM
data analysis on fields with words not numbers Rebecca Excel Worksheet Functions 3 August 17th 05 05:49 AM


All times are GMT +1. The time now is 06:16 AM.

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

About Us

"It's about Microsoft Excel"