Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Data Entry Formula based on IF or something Better

Hi All,

I have a situation where I need to fill Column B with Text Depending on what
Text is in Column A eg

Column A Column B

1 GREAPPLES GREEN Products
2 PEARSGREEN GREEN Products
3 GreenGarbage GREEN Products

In other words I would be using GRE as the condition in Col A for a product
to classed as GREEN Products
I would be grateful if someone can point me in the right direction.
Thank you

Edwin


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,572
Default Data Entry Formula based on IF or something Better

This works for the *one* example you gave.

=IF(ISNUMBER(SEARCH("Gre",A1)),"Green Products","")

Leaving Column B blank if it doesn't find "Gre",
BUT ... don't you have *other* text to look for?

A different formula would be called for if you have a large datalist to look
for.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Edwin Mashiringwani" wrote in message
...
Hi All,

I have a situation where I need to fill Column B with Text Depending on what
Text is in Column A eg

Column A Column B

1 GREAPPLES GREEN Products
2 PEARSGREEN GREEN Products
3 GreenGarbage GREEN Products

In other words I would be using GRE as the condition in Col A for a product
to classed as GREEN Products
I would be grateful if someone can point me in the right direction.
Thank you

Edwin



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2
Default Data Entry Formula based on IF or something Better

Thank you RD for your quick response. The example formula you suggested does
work.
As it happens I have other text where your suggested formula would look like
this
=IF(ISNUMBER(SEARCH("Red",A1)),"Red Products","")

Is there another formula I can use that recognise that if "Red" is found
anywhere in Column A , the result in Column B would be " Red Products" , as
well as handling "Gre" in Col A to have a result of "Green Products" and
other variations ?

Thank you in advance
Edwin


"RagDyeR" wrote in message
...
This works for the *one* example you gave.

=IF(ISNUMBER(SEARCH("Gre",A1)),"Green Products","")

Leaving Column B blank if it doesn't find "Gre",
BUT ... don't you have *other* text to look for?

A different formula would be called for if you have a large datalist to
look
for.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Edwin Mashiringwani" wrote in message
...
Hi All,

I have a situation where I need to fill Column B with Text Depending on
what
Text is in Column A eg

Column A Column B

1 GREAPPLES GREEN Products
2 PEARSGREEN GREEN Products
3 GreenGarbage GREEN Products

In other words I would be using GRE as the condition in Col A for a
product
to classed as GREEN Products
I would be grateful if someone can point me in the right direction.
Thank you

Edwin





  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,886
Default Data Entry Formula based on IF or something Better

Hi Edwin

Perhaps you could modify the following array formula to suit your needs
{=CHOOSE(MAX((ISNUMBER(SEARCH
({"Red","Green","Yellow"},A21))*{1,2,3}))+1
,"No","Red","Green","Yellow")& " Product"}

Use Ctrl+Shift+Enter (CSE) to commit on Edit the formula rather than
just Enter.
Do not type the curly braces { } yourself, Excel will enter them
when you use CSE

You can extend the list "Red","Green" in both sets of data, but you
need to add to the 1,2,3 for each addition you make to the range. The
"No" at the beginning of the second range, is to deal with the case
where none of the colours are found.

--
Regards

Roger Govier


"Edwin Mashiringwani" wrote in message
...
Thank you RD for your quick response. The example formula you
suggested does work.
As it happens I have other text where your suggested formula would
look like this
=IF(ISNUMBER(SEARCH("Red",A1)),"Red Products","")

Is there another formula I can use that recognise that if "Red" is
found anywhere in Column A , the result in Column B would be " Red
Products" , as well as handling "Gre" in Col A to have a result of
"Green Products" and other variations ?

Thank you in advance
Edwin


"RagDyeR" wrote in message
...
This works for the *one* example you gave.

=IF(ISNUMBER(SEARCH("Gre",A1)),"Green Products","")

Leaving Column B blank if it doesn't find "Gre",
BUT ... don't you have *other* text to look for?

A different formula would be called for if you have a large datalist
to look
for.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"Edwin Mashiringwani" wrote in message
...
Hi All,

I have a situation where I need to fill Column B with Text Depending
on what
Text is in Column A eg

Column A Column B

1 GREAPPLES GREEN Products
2 PEARSGREEN GREEN Products
3 GreenGarbage GREEN Products

In other words I would be using GRE as the condition in Col A for a
product
to classed as GREEN Products
I would be grateful if someone can point me in the right direction.
Thank you

Edwin







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
Formula to fill a cell based on an entry in one of two worksheets brisen09 Excel Worksheet Functions 0 August 16th 06 04:58 AM
Excel formula timestamp for a data entry of a referenced cell jmasaki Excel Worksheet Functions 1 July 3rd 06 02:19 AM
Display data from cells based on a formula JimmyB Excel Discussion (Misc queries) 0 May 27th 06 04:24 PM
Formula and Data Entry in a Single Cell Josh VM Excel Discussion (Misc queries) 1 October 21st 05 09:31 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 03:47 PM


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