match mix with sumif and vlookup

M

Manos

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
 
J

JE McGimpsey

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)
 
M

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top