View Single Post
  #4   Report Post  
Manos
 
Posts: n/a
Default

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