Macro for merging cells
问题 I have an Excel file with Invoice number in Column B, ( B2:B14987 ), in Column C I have Item ID's, in Column D I have Sold Value, in Column E I have Invoice-Discount Value. I need a macro to merge the Invoice Discount value cells based on Invoice number column, invoice numbers are repeated as there are different item ID's in one invoice. For example: B1:B3 are the same invoice number, E1 is the common discount value for the invoices which are in B1:B3 , E2:E3 are blank cells. So I want E1:E3