hi
I want filling data under range A:F based on matching headers with K:P . I put resut in second sheet how should be in first sheet
thanks
hi
I want filling data under range A:F based on matching headers with K:P . I put resut in second sheet how should be in first sheet
thanks
![]()
Please Login or Register to view this content.
Or with a formula: Please try in B2 and copy to rightFormula:
Please Login or Register to view this content.
is this what you need?
Hi jindon
thanks for your code.
I have question I don't see any topic of header in your code . when you have filter based on column 2 , does it mean column ITEM ?
if it's so I have to explain more . I'm fraid face problem with this solution .
@HansDouwe & superjoejoe2000 thanks for fromuals , but I want vba , sorry!
Hello. Basically you need to reorder the columns so that the Index function can help you:
PHP Code:
Sub Macro2()
Columns(5).NumberFormat = Range("L2").NumberFormat
With Range("K1").CurrentRegion
Range("A1").Resize(.Rows.Count, .Columns.Count) = _
Application.Index(.Cells, Evaluate("Row(a1:a" & .Rows.Count & ")"), _
Array(3, 1, 6, 5, 2, 4))
End With
End Sub
You have before and after sheet, so you must have prepared header for result.
Otherwise, simply
![]()
Please Login or Register to view this content.
Last edited by jindon; 11-16-2022 at 04:31 PM.
@beyond Excel excellent !
great idea to arranging columns again![]()
yes I don't expect from you use specific column to filter data . I thought you will create code search for headers and brings data .sorry about this confusion ! after tested both codes I will take the first becuase is really fast more than looping .You have before and after sheet, so you must have prepared header for result.
thanks very much for two codes .![]()
If you use my first code, headers MUST be identical, no miss spelled.
AdvancedFilter should be the fastest and no need to adjust the formattings.
thanks for this clarification .If you use my first code, headers MUST be identical, no miss spelled.
AdvancedFilter should be the fastest and no need to adjust the formattings.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks