Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Manos
 
Posts: n/a
Default 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


  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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

  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

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


  #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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forget SUMIF, COUNTIF and VLOOKUP Pierre Leclerc Excel Worksheet Functions 16 April 27th 23 11:51 AM
sumif help MCorrea Excel Worksheet Functions 0 February 19th 05 04:01 AM
SUMIF using VLOOKUP as criteria Telly Excel Worksheet Functions 1 February 18th 05 10:17 PM


All times are GMT +1. The time now is 05:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"