LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default Countif or please advice

I'll rephrase this and you tell me whether I said it right: Somewhere in an
Excel workbook you have a cell that contains either of these two text
strings. You want some way of detecting whether the text string says "Supply
& Fit" or "Supply Only", and pulls a value from either of two cells (you made
them both A1 in your example but I suppose you mean two DIFFERENT cells)
depending on that distinction. And you warn us that the place where you put
asterists could be a number of different text values, not all of the same
length -- that is, the text could read "We have pleasure in submitting our
quotation for a Supply & Fit in a low and high Wind Zone as per NZS 3604 as
below:" or "We have pleasure in submitting our quotation for a Supply & Fit
in a medium Wind Zone as per NZS 3604 as below:". Right?

If so, the length of the wind-zone type doesn't matter; the very simplest
way to do it, it seems to me, is to look at the 59th character in that
sentence; if it's "&" then it's "Supply & Fit", and if it's "O" then it's
"Supply Only". One way of doing that would be a formula saying
=IF(MID(D4,59,1)="&",A1,A2). This says "if the 59th character of D4 is "&",
plus A1 in here; otherwise plug A2 in here". Will that do?

--- "Jeffrey" wrote:
I have two sentence, 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 price in cell A1 for example. of if
the sentece has "supply only" then it will reflect the supply only
price in cell A1. 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:

 
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
Advice Please? Greg[_27_] Excel Programming 3 May 9th 06 10:51 AM
advice. Osvaldo[_2_] Excel Programming 1 July 24th 05 12:42 AM
Advice Please Greg B Excel Worksheet Functions 5 March 17th 05 12:13 PM
Almost got it !! but need advice Nospam Excel Worksheet Functions 6 February 28th 05 10:27 AM
RTD Advice JD Excel Programming 2 October 22nd 04 11:29 AM


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