SOLVED
Home

Loading data from one worksheet to another

%3CLINGO-SUB%20id%3D%22lingo-sub-469282%22%20slang%3D%22en-US%22%3ELoading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469282%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EThe%20attached%20sheet%20contains%20a%20%22Suppliers%22%20tab%20which%20includes%20a%20list%20of%20suppliers.%20I%20used%20a%20formula%20in%20the%20%22Bank%20Payments%22%20to%20download%20suppliers%20according%20to%20certain%20conditions.%20I%20could%20not%20use%20the%20same%20formula%20in%20the%20%22Invoices%22%20and%20%22Daily%20Payments%22%20tabs%20because%20it%20contains%20merged%20cells.%20Is%20there%20another%20formula%20to%20do%20the%20same%20job%20or%20the%20existing%20one%20could%20be%20modified%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-469282%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-469675%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469675%22%20slang%3D%22en-US%22%3EUnmerge%20the%20merged%20cells.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-469824%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-469824%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20setup%20of%20those%20tabs%20mandates%20to%20have%20two%20rows%20per%20entry.%20Even%20if%20you%20unmerge%20the%20cells%2C%20the%20formula%20will%20not%20skip%20one%20row.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-471264%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-471264%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F156985%22%20target%3D%22_blank%22%3E%40saad%20soliman%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFirst%2C%20convert%20it%20to%20regular%20(not%20array)%20formula%3C%2FP%3E%0A%3CP%3ESecond%2C%20skip%20every%20second%20row%20(see%20ROWS%20part)%3C%2FP%3E%0A%3CPRE%3E%3DIFERROR(INDEX(Table1%5B%5BSupplier%20Name%5D%3A%5BProduct%20Type%5D%5D%2CAGGREGATE(15%2C6%2C1%2F(Table1%5BProduct%20Type%5D%3D%24A%243)%20%2F%20(Table1%5BPayment%20Type%5D%3D%22EFT%22)*(ROW(Table1%5BProduct%20Type%5D)-1)%2C(ROWS(%24B%243%3AB3)-1)%2F2%2B1%20%20)%2C1)%2C%22%22)%3C%2FPRE%3E%0A%3CP%3EThat%20is%20first%20few%20names%20in%20Invoices%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-474051%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-474051%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%20a%20lot%20Sergei.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-474411%22%20slang%3D%22en-US%22%3ERe%3A%20Loading%20data%20from%20one%20worksheet%20to%20another%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-474411%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F156985%22%20target%3D%22_blank%22%3E%40saad%20soliman%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E
saad soliman
Occasional Contributor

Hi,

The attached sheet contains a "Suppliers" tab which includes a list of suppliers. I used a formula in the "Bank Payments" to download suppliers according to certain conditions. I could not use the same formula in the "Invoices" and "Daily Payments" tabs because it contains merged cells. Is there another formula to do the same job or the existing one could be modified?

 

Thanks for your help.

 

Regards

5 Replies
Unmerge the merged cells.

The setup of those tabs mandates to have two rows per entry. Even if you unmerge the cells, the formula will not skip one row.

@saad soliman ,

 

First, convert it to regular (not array) formula

Second, skip every second row (see ROWS part)

=IFERROR(INDEX(Table1[[Supplier Name]:[Product Type]],AGGREGATE(15,6,1/(Table1[Product Type]=$A$3) / (Table1[Payment Type]="EFT")*(ROW(Table1[Product Type])-1),(ROWS($B$3:B3)-1)/2+1  ),1),"")

That is first few names in Invoices

 

Solution

Thanks a lot Sergei. 

@saad soliman , you are welcome