Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default finding text and performing a calculation

Is it possible to look for a string of text in a cell, then perform a
calculation?
Example:
A1 = Senior Thesis Research (this column also contains data like "Lab Thesis")
B1 = 10
C1 = 5

If the word "Thesis" is in A1, multiply B1*C1, if it's not, enter zero. The
formula I tried works, but when a cell in column A doesn't have the word
"Thesis" I get "#Value!" error.

The formula I tried is:
=IF(FIND("Thesis",A1)0,B1*C1,0)

Thanks in advance. Scott
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default finding text and performing a calculation

The formula I tried is:
=IF(FIND("Thesis",A1)0,B1*C1,0)


Try it like this:

=IF(COUNT(FIND("Thesis",A1)),B1*C1,0)

Or:

=IF(COUNTIF(A1,"*Thesis*"),B1*C1,0)

--
Biff
Microsoft Excel MVP


"scokaw" wrote in message
...
Is it possible to look for a string of text in a cell, then perform a
calculation?
Example:
A1 = Senior Thesis Research (this column also contains data like "Lab
Thesis")
B1 = 10
C1 = 5

If the word "Thesis" is in A1, multiply B1*C1, if it's not, enter zero.
The
formula I tried works, but when a cell in column A doesn't have the word
"Thesis" I get "#Value!" error.

The formula I tried is:
=IF(FIND("Thesis",A1)0,B1*C1,0)

Thanks in advance. Scott



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default finding text and performing a calculation

A few keystrokes shorter:

=COUNTIF(A1,"*thesis*")*B1*C1

--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
The formula I tried is:
=IF(FIND("Thesis",A1)0,B1*C1,0)


Try it like this:

=IF(COUNT(FIND("Thesis",A1)),B1*C1,0)

Or:

=IF(COUNTIF(A1,"*Thesis*"),B1*C1,0)

--
Biff
Microsoft Excel MVP


"scokaw" wrote in message
...
Is it possible to look for a string of text in a cell, then perform a
calculation?
Example:
A1 = Senior Thesis Research (this column also contains data like "Lab
Thesis")
B1 = 10
C1 = 5

If the word "Thesis" is in A1, multiply B1*C1, if it's not, enter zero.
The
formula I tried works, but when a cell in column A doesn't have the word
"Thesis" I get "#Value!" error.

The formula I tried is:
=IF(FIND("Thesis",A1)0,B1*C1,0)

Thanks in advance. Scott





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
performing regression cf New Users to Excel 1 December 26th 08 04:10 PM
a more efficient way of performing this calculation? Dave F[_2_] Excel Discussion (Misc queries) 1 October 2nd 07 09:07 PM
Performing arithmetic functions to cells with number and text Arithmetic functions with embedded text Excel Discussion (Misc queries) 4 May 15th 07 03:36 PM
Finding text in a cell and returning a value based on that text [email protected] Excel Discussion (Misc queries) 5 January 10th 07 06:01 PM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM


All times are GMT +1. The time now is 11:24 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"