Hi all,
Need a bit of help please.
I'm have raw data which is dumped into Column C, which contains text and numbers, but is in text format i.e. 52345 Fixed Assets xxxx etc.
I have used the following formula to pull the numbers I want into Column A: =IF(COUNT(FIND({5,6,7,8,9},C29))>0,LEFT(C29,6),"")
The numbers I want only start with those numbers above.
In column B, I am using a Trim function as some numbers are only 5 digits therefore they'll have a space. Numbers will not be longer then 6 hence the Left(C29,6) formula above.
Problem is some of the numbers begin with the letter 'C', therefore when I run: =IF(A12="","",VALUE(TRIM(A12))) I get an error on the values with a C in front, but obviously it works for cells with an actual Value and no letter. Is there a way around this to include number values and text?
I want to then use this column as the table_array for a Vlookup in another worksheet, within the same workbook.
The reference I'll use, is also system data, which will contain the 5 digit numbers and the 6 digit numbers with the letter C in front.
i.e.
52345
C52346
C93394
64452 etc.
I tried to get around this by running a Vlookup directly off the IF(Count(Find) function that I pasted above (Column A). I thought I could lookup text and numbers using:
=IF(A12="","",IFERROR(VLOOKUP(IF(ISERROR(A12),A12,A12+0),'SAP Data (ZFI_GJ87)'!$C:$C,1,FALSE),"Acct NOT listed"))
This works for the numbers, but won't lookup values with the letter C in front.
I'm caught between the two.
Is there a way to do this or do I have to run formula's in two separate columns and the manually combine them? Hoping to automate this process as much as possible, without VBA?
Many Thanks.
Need a bit of help please.
I'm have raw data which is dumped into Column C, which contains text and numbers, but is in text format i.e. 52345 Fixed Assets xxxx etc.
I have used the following formula to pull the numbers I want into Column A: =IF(COUNT(FIND({5,6,7,8,9},C29))>0,LEFT(C29,6),"")
The numbers I want only start with those numbers above.
In column B, I am using a Trim function as some numbers are only 5 digits therefore they'll have a space. Numbers will not be longer then 6 hence the Left(C29,6) formula above.
Problem is some of the numbers begin with the letter 'C', therefore when I run: =IF(A12="","",VALUE(TRIM(A12))) I get an error on the values with a C in front, but obviously it works for cells with an actual Value and no letter. Is there a way around this to include number values and text?
I want to then use this column as the table_array for a Vlookup in another worksheet, within the same workbook.
The reference I'll use, is also system data, which will contain the 5 digit numbers and the 6 digit numbers with the letter C in front.
i.e.
52345
C52346
C93394
64452 etc.
I tried to get around this by running a Vlookup directly off the IF(Count(Find) function that I pasted above (Column A). I thought I could lookup text and numbers using:
=IF(A12="","",IFERROR(VLOOKUP(IF(ISERROR(A12),A12,A12+0),'SAP Data (ZFI_GJ87)'!$C:$C,1,FALSE),"Acct NOT listed"))
This works for the numbers, but won't lookup values with the letter C in front.
I'm caught between the two.
Is there a way to do this or do I have to run formula's in two separate columns and the manually combine them? Hoping to automate this process as much as possible, without VBA?
Many Thanks.