ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formula text to columns (https://www.excelbanter.com/excel-discussion-misc-queries/178564-formula-text-columns.html)

billinr

Formula text to columns
 
I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA

Ron Rosenfeld

Formula text to columns
 
On Mon, 3 Mar 2008 11:04:16 -0800, billinr
wrote:

I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA


Do the copy/paste values to a different column -- then work there.

Or, depending on the kind of result, you could use a formula to return the
portion of the answer that you want to different columns.
--ron

Dave Peterson

Formula text to columns
 
Maybe you can copy|paste special values into a different range?

billinr wrote:

I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA


--

Dave Peterson

FSt1

Formula text to columns
 
hi
you might may use of a helper column.
leave the below formula where it is (say a5) but in a blank column (say R5)
put the formula =A5. you can then copy and paste as value then to text to
columns in R5 keeping the original formula in A5 untouched.

Regards
FSt1

"billinr" wrote:

I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA


Tyro[_2_]

Formula text to columns
 
If you copy the results in the cell containing the fomula then paste
special/values in another cell, you do not affect the formula at all. You
can then use text to columns to separate the pasted values

Tyro

"billinr" wrote in message
...
I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result
into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA




Gary''s Student

Formula text to columns
 
Just do the work text-to-columns usually does for you. Say the lookup table
is:

1 hello world
2 happy day
3 smile often
4 help others
5 post frequently

with each phrase in a single cell. In A1, the formula:
=VLOOKUP(2,J1:K5,2)
returns:
happy day

So in B1 put:
=LEFT(A1,FIND(" ",A1,1)-1)
and in C1 put:
=RIGHT(A1,LEN(A1)-FIND(" ",A1,1))



In a way this is actually better than text-to-columns because it will
automatically parse the words as the VLOOKUP() changes
--
Gary''s Student - gsnu200771


"billinr" wrote:

I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA


billinr

Formula text to columns
 
Thanks, Ron
That will give me the result I want, but I would have to run the copy/ paste
each time I use the sheet.
Can you suggest a macro or formula to make that happen automatically?

"Ron Rosenfeld" wrote:

On Mon, 3 Mar 2008 11:04:16 -0800, billinr
wrote:

I have a few formulas resulting from a vlookup:
=IF(ISERROR(VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE)),"",VLOOKUP(K17&" "&M17&" "&O17&"
"&Q17,J29:J73,1,FALSE))

This returns the correct answer, but when I try to separate the result into
columns, all I can see is the formula in the text to columns work box.
Since I want to leave this formula in place to use for future changes, I
don't want to use a copy/ paste values and lose the formula.
Is there a way to work with the values and still keep the formula?

TIA


Do the copy/paste values to a different column -- then work there.

Or, depending on the kind of result, you could use a formula to return the
portion of the answer that you want to different columns.
--ron


Ron Rosenfeld

Formula text to columns
 
On Mon, 3 Mar 2008 11:51:01 -0800, billinr
wrote:

Thanks, Ron
That will give me the result I want, but I would have to run the copy/ paste
each time I use the sheet.
Can you suggest a macro or formula to make that happen automatically?


You can try recording your copy/paste keystrokes to start off developing a
macro.

Or you can post more detail about your data setup, how it changes, and what
sort of results you require, and we can probably come up with something here.
--ron


All times are GMT +1. The time now is 08:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com