countif or please advice

J

Jeffrey

good day,

I have two sentence which may appear in the same cell, see below: and
I would like to reflect respective dollar value for these
statements. If the sentence has "supply & fit"
then it will reflect a supply and fit price in cell A1 for example. of
if
the sentece has "supply only" then it will reflect the supply only
price. Noticed that ***** varies (it could be low, medium,
low and medium, high, very high).


Sentence 1
We have pleasure in submitting our quotation for a Supply & Fit in a
***** Wind Zone as per NZS 3604 as below:


Sentence 2
We have pleasure in submitting our quotation for a Supply Only in a
***** Wind Zone as per NZS 3604 as below:


thanks in advance.


Jeff
 
G

Gary''s Student

This may be of no help at all, but...

Say A1 contains the supply & fit price
and
A2 contains the supply only price

Say B1 contains the sentence. The in C1 enter:

=IF(LEN(SUBSTITUTE(B1,"supply only",""))=LEN(B1),A1,A2)

this says that if the phrase "supply only" is somewhere in cell B1, the
value in A2 is picked, otherwise the value in A1.
 
J

Jeffrey

This may be of no help at all, but...

Say A1 contains the supply & fit price
and
A2 contains the supply only price

Say B1 contains the sentence.  The in C1 enter:

=IF(LEN(SUBSTITUTE(B1,"supply only",""))=LEN(B1),A1,A2)

this says that if the phrase "supply only" is somewhere in cell B1, the
value in A2 is picked, otherwise the value in A1.
--
Gary''s Student - gsnu2007k










- Show quoted text -


Hi Gary,

This is brilliant. I will keep this trick in my heart.

cheers.

jeff
 
J

Jeffrey

Hi Gary,

This is brilliant.  I will keep this trick in my heart.

cheers.

jeff- Hide quoted text -

- Show quoted text -

Hi Gary,

This works when i tried it when using sentence without concantenation.
But my sentence are made up of about 4 contantenations. Please
advice.

thanks.

Jeff
 
J

Jeffrey

Hi Gary,

This works when i tried it when using sentence without concantenation.
But my sentence are made up of about 4 contantenations.  Please
advice.

thanks.

Jeff- Hide quoted text -

- Show quoted text -

Hi Gary,

Hey just want to let you know that this formula works even in
concantenated sentence. THANKS MUCH.

JEFF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top