match mix with sumif and vlookup
Dear all good morning
i have a workbook with 4 sheets. the first one has to consolidate the other 3 i am trying to create a formula by adding the three sheets. but the results in not correct. there are 2000 rows with different account per sheet. There is any possibility to say if B1 from sheet2 is equal with B1 from sheet3 and equal with B1 from sheet 4 the add the respectivly cells from each sheet, from column C. I am quity comfuse because i mixing match formula with sumif and vlookup. Can you please someone help me? Thanks in advance Manos |
One way:
=IF(AND(Sheet2!B1=Sheet3!B1,Sheet2!B1=Sheet4!B1), SUM(Sheet2:Sheet4!C1), "") This assumes that Sheet2,Sheet3,and Sheet4 are in order from left to right. Otherwise, replace SUM(Sheet2:Sheet4!C1) with SUM(Sheet2!C1,Sheet3!C1,Sheet4!C1) In article , "Manos" wrote: Dear all good morning i have a workbook with 4 sheets. the first one has to consolidate the other 3 i am trying to create a formula by adding the three sheets. but the results in not correct. there are 2000 rows with different account per sheet. There is any possibility to say if B1 from sheet2 is equal with B1 from sheet3 and equal with B1 from sheet 4 the add the respectivly cells from each sheet, from column C. I am quity comfuse because i mixing match formula with sumif and vlookup. Can you please someone help me? Thanks in advance Manos |
http://tinyurl.com/4fqfn
Manos wrote: Dear all good morning i have a workbook with 4 sheets. the first one has to consolidate the other 3 i am trying to create a formula by adding the three sheets. but the results in not correct. there are 2000 rows with different account per sheet. There is any possibility to say if B1 from sheet2 is equal with B1 from sheet3 and equal with B1 from sheet 4 the add the respectivly cells from each sheet, from column C. I am quity comfuse because i mixing match formula with sumif and vlookup. Can you please someone help me? Thanks in advance Manos |
Hello again
yes it works but when the lines are not equal the formula gives blank. How can i make it to have the sum for the lines the have equal code? or at least for the formula not to bring false or blank "JE McGimpsey" wrote in message ... One way: =IF(AND(Sheet2!B1=Sheet3!B1,Sheet2!B1=Sheet4!B1), SUM(Sheet2:Sheet4!C1), "") This assumes that Sheet2,Sheet3,and Sheet4 are in order from left to right. Otherwise, replace SUM(Sheet2:Sheet4!C1) with SUM(Sheet2!C1,Sheet3!C1,Sheet4!C1) In article , "Manos" wrote: Dear all good morning i have a workbook with 4 sheets. the first one has to consolidate the other 3 i am trying to create a formula by adding the three sheets. but the results in not correct. there are 2000 rows with different account per sheet. There is any possibility to say if B1 from sheet2 is equal with B1 from sheet3 and equal with B1 from sheet 4 the add the respectivly cells from each sheet, from column C. I am quity comfuse because i mixing match formula with sumif and vlookup. Can you please someone help me? Thanks in advance Manos |
All times are GMT +1. The time now is 12:53 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com