No needs any formula neither a code,Secondly,sort Z column alphabetically and extract in new worksheet that contains'P'
Have u seen my ultimate required results in worksheet-'After-Final Result'Hi !Code:Sub Demo1() Range("E2:E" & ActiveSheet.UsedRange.Rows.Count).Formula = "=LEFT((TRIM(B2)),1)" End Sub
Do you like it ? So thanks to click on bottom right Like !
Secondly,sort Z column alphabetically and extract in new worksheet that contains'P'
I have modified the post #1 due to confidential data.I have attached in Post#4 and accordingly criteria.In that file worksheet "After-Final Result" is my ultimate result which I want to extract from worksheet 'Before' which is my raw data & worksheet between these two is one kind of helper.Hence my ultimate goal is "After-Final Result" worksheet.What does contains'P' mean? See no P to sort on? Your final result does not sort, but filters for West. Why do you need column E in your After Working Sheet if it is not used in the final output. Your request other than finding the last row is at best confusing. Please clarify what you are trying to do? Why do you need VBA to filter if this is a built in function of Excel?
This formula is awesome but it should be as long as the data are there and not more than that in either side.No more no lessHi !Code:Sub Demo1() Range("E2:E" & ActiveSheet.UsedRange.Rows.Count).Formula = "=LEFT((TRIM(B2)),1)" End Sub
Do you like it ? So thanks to click on bottom right Like !
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type datetime}, {"Region", type text}, {"Product", type text}, {"Quantity", Int64.Type}}),
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([Region] = "West")) #"Filtered Rows"