#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 70
Default Reading contents

Hello,
I would like to create a formula that equals one cell if a selection of
others include certain text.

For example, A1 is H, B1 is HI, B2 is HHI.

I want my formula to equals A1 if cells E8-E10 contain the contents of B1 or
B2

Thank you
Fiona
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Reading contents

One way..

Try in say, C1:
=IF(SUMPRODUCT((ISNUMBER(MATCH(E8:E10,B1:B2,0))*(E 8:E10<"")))0,A1,"")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Fiona" wrote:
Hello,
I would like to create a formula that equals one cell if a selection of
others include certain text.

For example, A1 is H, B1 is HI, B2 is HHI.

I want my formula to equals A1 if cells E8-E10 contain the contents of B1 or
B2

Thank you
Fiona

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Reading contents

Try this:

=IF(SUMPRODUCT(COUNTIF(E8:E10,B1:B2)),A1,"")


"Fiona" wrote:

Hello,
I would like to create a formula that equals one cell if a selection of
others include certain text.

For example, A1 is H, B1 is HI, B2 is HHI.

I want my formula to equals A1 if cells E8-E10 contain the contents of B1 or
B2

Thank you
Fiona

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Reading contents

Hi

If I new what you data looked like it would be easier but I tried this
A B C D E F G
1 H HI
2
3
4
5
6
7
8 HI
9 HI
10 HI =E8&E9&E10 =IF(F10=$B$1&$B$1&$B$1,$A$1,"")

Norm


"Fiona" wrote:

Hello,
I would like to create a formula that equals one cell if a selection of
others include certain text.

For example, A1 is H, B1 is HI, B2 is HHI.

I want my formula to equals A1 if cells E8-E10 contain the contents of B1 or
B2

Thank you
Fiona

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
compare the contents of one range of cells with the contents of a. Dozy123 Excel Discussion (Misc queries) 1 January 24th 07 10:14 AM
Reading tabs name smaruzzi Excel Discussion (Misc queries) 1 October 7th 06 05:16 PM
Reading a large DBF JayWind Excel Discussion (Misc queries) 3 June 15th 06 09:17 AM
Macro to remove contents of cell and move all other contents up one row adw223 Excel Discussion (Misc queries) 1 July 1st 05 03:57 PM
reading from chart Jim Excel Discussion (Misc queries) 2 December 29th 04 02:31 PM


All times are GMT +1. The time now is 05:39 PM.

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"