ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Sumif merged cells (https://www.excelbanter.com/excel-discussion-misc-queries/178960-sumif-merged-cells.html)

oscar

Sumif merged cells
 
How can I use the sumif [=SUMIF(A1:A3;D1;B1:B3)] if A1 and A2 are merged and
I want value from merged cell to be valid for both A1 and A2?

Oscar

David Biddulph[_2_]

Sumif merged cells
 
Standard advice here is *not* to merge cells.
--
David Biddulph

"Oscar" wrote in message
...
How can I use the sumif [=SUMIF(A1:A3;D1;B1:B3)] if A1 and A2 are merged
and
I want value from merged cell to be valid for both A1 and A2?

Oscar




oscar

Sumif merged cells
 
I agree but in this case I'm not in position to make such a decision. I was
just asked to provide a solution.

Oscar.

"David Biddulph" wrote:

Standard advice here is *not* to merge cells.
--
David Biddulph

"Oscar" wrote in message
...
How can I use the sumif [=SUMIF(A1:A3;D1;B1:B3)] if A1 and A2 are merged
and
I want value from merged cell to be valid for both A1 and A2?

Oscar





Roger Govier[_3_]

Sumif merged cells
 
Hi Oscar

Assuming there are no other blanks in the range, then
=SUMIF(A1:A3,D1,B1:B3)+SUMIF(A1:A3,"",B1:B3)

--
Regards
Roger Govier

"Oscar" wrote in message
...
I agree but in this case I'm not in position to make such a decision. I
was
just asked to provide a solution.

Oscar.

"David Biddulph" wrote:

Standard advice here is *not* to merge cells.
--
David Biddulph

"Oscar" wrote in message
...
How can I use the sumif [=SUMIF(A1:A3;D1;B1:B3)] if A1 and A2 are
merged
and
I want value from merged cell to be valid for both A1 and A2?

Oscar





oscar

Sumif merged cells
 
Unfortunately there are more than 3 lines involved and more than 1 merged
area in column A (A1:A3, A5:A8, ...).

"Roger Govier" wrote:

Hi Oscar

Assuming there are no other blanks in the range, then
=SUMIF(A1:A3,D1,B1:B3)+SUMIF(A1:A3,"",B1:B3)

--
Regards
Roger Govier

"Oscar" wrote in message
...
I agree but in this case I'm not in position to make such a decision. I
was
just asked to provide a solution.

Oscar.

"David Biddulph" wrote:

Standard advice here is *not* to merge cells.
--
David Biddulph

"Oscar" wrote in message
...
How can I use the sumif [=SUMIF(A1:A3;D1;B1:B3)] if A1 and A2 are
merged
and
I want value from merged cell to be valid for both A1 and A2?

Oscar





All times are GMT +1. The time now is 12:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com