Hi Power Users!
I am very new to Power Query, but an advanced Excel user. I am starting to get into Power Query and using data tables across a number of workbooks.
I have a column in my data table that should be a number however, sometimes it will be a text due to a letter being added to the end of the number. It will always be 5 numbers and then followed by a letter if that is the case.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Car
[/TD]
[TD]59847
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Truck
[/TD]
[TD]59848B
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Bus
[/TD]
[TD]59489C
[/TD]
[TD]30
[/TD]
[/TR]
</tbody>[/TABLE]
When I bring this data into Power Query the items in Column B with the suffix letter error out.
My excel brain tells me =if(Len(B1)=6, Left(B1, 5), B1)
How do i write this into a query so it comes through as a numeric value please?
I am very new to Power Query, but an advanced Excel user. I am starting to get into Power Query and using data tables across a number of workbooks.
I have a column in my data table that should be a number however, sometimes it will be a text due to a letter being added to the end of the number. It will always be 5 numbers and then followed by a letter if that is the case.
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A
[/TD]
[TD]B
[/TD]
[TD]C
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]Car
[/TD]
[TD]59847
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]Truck
[/TD]
[TD]59848B
[/TD]
[TD]20
[/TD]
[/TR]
[TR]
[TD]3
[/TD]
[TD]Bus
[/TD]
[TD]59489C
[/TD]
[TD]30
[/TD]
[/TR]
</tbody>[/TABLE]
When I bring this data into Power Query the items in Column B with the suffix letter error out.
My excel brain tells me =if(Len(B1)=6, Left(B1, 5), B1)
How do i write this into a query so it comes through as a numeric value please?