Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default extracting specific values and replacing in set column

Hi there,
i am trying to extract a value from a column that contains multiple
'selections' separated by a ';" sign. Ie in Column A i want to find every
value 'general' and input that value in column B the same row. Any formulas?
thanks so much!
Hudini
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default extracting specific values and replacing in set column

Try this in B1, and copy down as needed:

=IF(ISNUMBER(SEARCH("general",A1)),"general","")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"hudini" wrote in message
...
Hi there,
i am trying to extract a value from a column that contains multiple
'selections' separated by a ';" sign. Ie in Column A i want to find every
value 'general' and input that value in column B the same row. Any

formulas?
thanks so much!
Hudini


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default extracting specific values and replacing in set column


Thanks RD that was very helpful! any ideas if i have to do this over 30
times? ie there are 30 values in row A that i want to extract and input
correctly in Row B.
Thanks again!
Hudini



"Ragdyer" wrote:

Try this in B1, and copy down as needed:

=IF(ISNUMBER(SEARCH("general",A1)),"general","")

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"hudini" wrote in message
...
Hi there,
i am trying to extract a value from a column that contains multiple
'selections' separated by a ';" sign. Ie in Column A i want to find every
value 'general' and input that value in column B the same row. Any

formulas?
thanks so much!
Hudini



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default extracting specific values and replacing in set column

By "Copy down as needed", I meant ... with values in A1 to A30,
After entering the formula in B1,
Click back in B1 to select it.

In the lower right corner of the selected B1, you'll see a tiny black
square.
Hover your cursor over this square until the cursor changes from a fat white
cross to a skinny black cross -
THEN - click and drag down to B30.
This will cause the formula to copy itself down Column B, changing the
relative cell references in the formula, dependant on the row it's copied
to.

Another copy approach (*if* A1 to A30 contain *no* empty cells),
is to *double* click on that tiny black square in B1,
which will automatically copy the formula in B1 as far down Column B as
there is data in Column A.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"hudini" wrote in message
...

Thanks RD that was very helpful! any ideas if i have to do this over 30
times? ie there are 30 values in row A that i want to extract and input
correctly in Row B.
Thanks again!
Hudini



"Ragdyer" wrote:

Try this in B1, and copy down as needed:

=IF(ISNUMBER(SEARCH("general",A1)),"general","")

--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"hudini" wrote in message
...
Hi there,
i am trying to extract a value from a column that contains multiple
'selections' separated by a ';" sign. Ie in Column A i want to find

every
value 'general' and input that value in column B the same row. Any

formulas?
thanks so much!
Hudini




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default extracting specific values and replacing in set column

Actually, what i meant is that i have over 30 values in column a that i want
to replace in column b if indeed it is in column a. IE, the formula might
look like this =IF(ISNUMBER(SEARCH("general","general2", "general3",
A1)),"general","") is that possible and if so how exactly should the formula
look?
thank you!!
Hudini

"Ragdyer" wrote:

By "Copy down as needed", I meant ... with values in A1 to A30,
After entering the formula in B1,
Click back in B1 to select it.

In the lower right corner of the selected B1, you'll see a tiny black
square.
Hover your cursor over this square until the cursor changes from a fat white
cross to a skinny black cross -
THEN - click and drag down to B30.
This will cause the formula to copy itself down Column B, changing the
relative cell references in the formula, dependant on the row it's copied
to.

Another copy approach (*if* A1 to A30 contain *no* empty cells),
is to *double* click on that tiny black square in B1,
which will automatically copy the formula in B1 as far down Column B as
there is data in Column A.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"hudini" wrote in message
...

Thanks RD that was very helpful! any ideas if i have to do this over 30
times? ie there are 30 values in row A that i want to extract and input
correctly in Row B.
Thanks again!
Hudini



"Ragdyer" wrote:

Try this in B1, and copy down as needed:

=IF(ISNUMBER(SEARCH("general",A1)),"general","")

--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"hudini" wrote in message
...
Hi there,
i am trying to extract a value from a column that contains multiple
'selections' separated by a ';" sign. Ie in Column A i want to find

every
value 'general' and input that value in column B the same row. Any
formulas?
thanks so much!
Hudini






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default extracting specific values and replacing in set column

I don't quite follow exactly what you're trying to do.

Are you saying that you have 30 possible values to search for in Column A,
and you want to be able to *change* the value you're looking for at any
particular time?

If so, enter the value to find in say C1, and try this:

=IF(ISNUMBER(SEARCH($C$1,A1)),$C$1,"")

To find a different value, just change the contents of C1.

OR, are you saying that you're looking for *any* of those 30 values at the
*same time*, and want to flag the row that they're found in.

To reference those 30 values you'll need to make a datalist, say in an
out-of-the-way location, Z1 to Z30.
Since these particular values will be combined with other values within the
cells, this datalist *must* include the asterisk wildcard,
something like this:

*Tom*
*Dick*
*harry*
*general*
.... etc.

Now, assign a name to this data range.

Select Z1 to Z30, and click in the name box (left of the formula bar), and
type something short, like:
list
Then hit <Enter.

Now, in B1, enter this formula:

=IF(SUMPRODUCT(COUNTIF(A1,INDIRECT("list")))0,"FO UND","")

And copy down as needed.

Each time one or more of the values in your datalist is found in Column A,
"FOUND" will display in the corresponding row in Column B.

If neither of these guesses of mine are what you want, post back with a more
definitive explanation.
--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"hudini" wrote in message
...
Actually, what i meant is that i have over 30 values in column a that i

want
to replace in column b if indeed it is in column a. IE, the formula might
look like this =IF(ISNUMBER(SEARCH("general","general2", "general3",
A1)),"general","") is that possible and if so how exactly should the

formula
look?
thank you!!
Hudini

"Ragdyer" wrote:

By "Copy down as needed", I meant ... with values in A1 to A30,
After entering the formula in B1,
Click back in B1 to select it.

In the lower right corner of the selected B1, you'll see a tiny black
square.
Hover your cursor over this square until the cursor changes from a fat

white
cross to a skinny black cross -
THEN - click and drag down to B30.
This will cause the formula to copy itself down Column B, changing the
relative cell references in the formula, dependant on the row it's

copied
to.

Another copy approach (*if* A1 to A30 contain *no* empty cells),
is to *double* click on that tiny black square in B1,
which will automatically copy the formula in B1 as far down Column B as
there is data in Column A.
--
HTH,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"hudini" wrote in message
...

Thanks RD that was very helpful! any ideas if i have to do this over

30
times? ie there are 30 values in row A that i want to extract and

input
correctly in Row B.
Thanks again!
Hudini



"Ragdyer" wrote:

Try this in B1, and copy down as needed:

=IF(ISNUMBER(SEARCH("general",A1)),"general","")

--
HTH,

RD



--------------------------------------------------------------------------
-
Please keep all correspondence within the NewsGroup, so all may

benefit
!


--------------------------------------------------------------------------
-
"hudini" wrote in message
...
Hi there,
i am trying to extract a value from a column that contains

multiple
'selections' separated by a ';" sign. Ie in Column A i want to

find
every
value 'general' and input that value in column B the same row. Any
formulas?
thanks so much!
Hudini





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
Counting a specific range of values within a column kenm Excel Discussion (Misc queries) 7 January 2nd 07 08:34 PM
Replacing specific numbers jezzica85 Excel Discussion (Misc queries) 2 May 5th 06 12:16 AM
AFTER REPLACING FORMULA WITH VALUES, HOW DO I ADD THE COLUMN? dyfrog Excel Discussion (Misc queries) 5 April 6th 06 07:20 PM
Replacing specific characters Trey Excel Discussion (Misc queries) 3 January 20th 06 11:57 PM
Populate a column by extracting unique values from another column? Mike Palmer Excel Worksheet Functions 2 June 10th 05 03:21 PM


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