PC Review


Reply
Thread Tools Rate Thread

Calculation if a cell contains a word

 
 
James
Guest
Posts: n/a
 
      20th Nov 2009
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 With Quote
 
 
 
 
David Biddulph
Guest
Posts: n/a
 
      20th Nov 2009
=IF(ISNUMBER(SEARCH("High",A2)),B2*.85,IF(ISNUMBER(SEARCH("Medium",A2)),B2*.60,IF(ISNUMBER(SEARCH("Low",A2)),B2*.45,"answer
unspecified")))
--
David Biddulph


"James" <(E-Mail Removed)> wrote in message
news:43659048-DAB5-4F50-BEA7-(E-Mail Removed)...
> 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 With Quote
 
Jarek Kujawa
Guest
Posts: n/a
 
      20th Nov 2009
=NOT(ISERROR(FIND("High",A1,1)))*.85+NOT(ISERROR(FIND("Medium",A1,1)))
*.6+NOT(ISERROR(FIND("Low",A1,1)))*.45


On 20 Lis, 13:37, James <Ja...@discussions.microsoft.com> 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 With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      20th Nov 2009
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.
>
>

 
Reply With Quote
 
James
Guest
Posts: n/a
 
      20th Nov 2009
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto calculation on the same cell without a helper cell? cpliu Microsoft Excel Discussion 3 27th Jan 2010 11:49 PM
Row Manipulation / duplicate dependant on cell value... and perform calculation on another cell... Brian Microsoft Excel Programming 3 15th Aug 2006 02:10 PM
skip cell if blank go on to use another cell in calculation sosborne Microsoft Excel Programming 0 8th Mar 2006 09:33 PM
How do I exclude a cell from an average calculation when the cell. =?Utf-8?B?U2Ft?= Microsoft Excel Misc 1 7th Sep 2005 05:16 PM
Re: Use cell in calculation only if offset cell contains data Bob Phillips Microsoft Excel Programming 0 12th Jan 2004 09:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:59 AM.