Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Calculation if a cell contains a word

I've exported data from a database and then performed a subtotal/count. I
need to multiply the count of the different criteria by three different
values.
If the Cell contains the word "High" I need to multiply the count by .85 if
"Low" by .45 and if "Medium" by .60

Area one Non Accommodation High Large 14
Area sixteen Non Accommodation High Small 7
Area three Accommodation Medium Small 6
Area one Accommodation Low Small 2
Area Five Non Accommodation Low Large 10
Area six Non Accommodation Medium Large 9

Cell A2 contains Area name and type and B2 contains the count.

Any help gratefully received.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Calculation if a cell contains a word

=IF(ISNUMBER(SEARCH("High",A2)),B2*.85,IF(ISNUMBER (SEARCH("Medium",A2)),B2*.60,IF(ISNUMBER(SEARCH("L ow",A2)),B2*.45,"answer
unspecified")))
--
David Biddulph


"James" wrote in message
...
I've exported data from a database and then performed a subtotal/count. I
need to multiply the count of the different criteria by three different
values.
If the Cell contains the word "High" I need to multiply the count by .85
if
"Low" by .45 and if "Medium" by .60

Area one Non Accommodation High Large 14
Area sixteen Non Accommodation High Small 7
Area three Accommodation Medium Small 6
Area one Accommodation Low Small 2
Area Five Non Accommodation Low Large 10
Area six Non Accommodation Medium Large 9

Cell A2 contains Area name and type and B2 contains the count.

Any help gratefully received.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default Calculation if a cell contains a word

=NOT(ISERROR(FIND("High",A1,1)))*.85+NOT(ISERROR(F IND("Medium",A1,1)))
*.6+NOT(ISERROR(FIND("Low",A1,1)))*.45


On 20 Lis, 13:37, James wrote:
I've exported data from a database and then performed a subtotal/count. I
need to multiply the count of the different criteria by three different
values.
If the Cell contains the word "High" I need to multiply the count by .85 if
"Low" by .45 and if "Medium" by *.60

Area one Non Accommodation High Large * 14
Area sixteen Non Accommodation High Small * * * 7
Area three Accommodation Medium Small * 6
Area one Accommodation Low Small * * * *2
Area Five Non Accommodation Low Large 10
Area six Non Accommodation Medium Large 9

Cell A2 contains Area name and type and B2 contains the count.

Any help gratefully received.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Calculation if a cell contains a word

Try
=B1*IF(ISNUMBER(SEARCH("low",A1)),0.45,
IF(ISNUMBER(SEARCH("medium",A1)),0.6,
IF(ISNUMBER(SEARCH("high",A1)),0.85,1)))

If this post helps click Yes
---------------
Jacob Skaria


"James" wrote:

I've exported data from a database and then performed a subtotal/count. I
need to multiply the count of the different criteria by three different
values.
If the Cell contains the word "High" I need to multiply the count by .85 if
"Low" by .45 and if "Medium" by .60

Area one Non Accommodation High Large 14
Area sixteen Non Accommodation High Small 7
Area three Accommodation Medium Small 6
Area one Accommodation Low Small 2
Area Five Non Accommodation Low Large 10
Area six Non Accommodation Medium Large 9

Cell A2 contains Area name and type and B2 contains the count.

Any help gratefully received.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 542
Default Calculation if a cell contains a word

Thank you all for your replies this is exactly what i was looking for.

James :-)

"James" wrote:

I've exported data from a database and then performed a subtotal/count. I
need to multiply the count of the different criteria by three different
values.
If the Cell contains the word "High" I need to multiply the count by .85 if
"Low" by .45 and if "Medium" by .60

Area one Non Accommodation High Large 14
Area sixteen Non Accommodation High Small 7
Area three Accommodation Medium Small 6
Area one Accommodation Low Small 2
Area Five Non Accommodation Low Large 10
Area six Non Accommodation Medium Large 9

Cell A2 contains Area name and type and B2 contains the count.

Any help gratefully received.




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
make cell equal a word if a data validation cell has a word in it Robzz Excel Discussion (Misc queries) 1 February 6th 09 06:20 PM
Cell calculation srain001 Excel Discussion (Misc queries) 3 October 1st 07 04:16 PM
How do a put a word on top of a word in a cell? Michelle Excel Discussion (Misc queries) 2 March 4th 07 11:07 PM
Add word in cell changes to word TRUE Joey041 Excel Discussion (Misc queries) 3 September 11th 06 03:47 AM
How do I exclude a cell from an average calculation when the cell. Sam Excel Discussion (Misc queries) 1 September 7th 05 05:16 PM


All times are GMT +1. The time now is 11:36 PM.

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"