#1   Report Post  
Junior Member
 
Posts: 16
Default if cell is blank

This won't work:

=SUM(T8:U27)-(IF(ISBLANK('Cost Plus Invoice'!O8:O1500)," ",('Cost Plus Invoice'!T8:U1500)))

This formula means,
The sum of T8:T27 (less) the sum of 'Cost Plus Invoice'!T8:U1500 only when cells 'Cost Plus Invoice'!O8:O1500 are empty.

In other words:
If the cell in row "o8" of sheet (Cost plus invoice) is empty, the $ amount in
row T8 will be subtracted from the amount in the cell that has the formula =sum(T8:U27)

Again, I'm sure it's a simple fix but I haven't been able to figure it out.
I tried a round about in my negative into positive # help request. but that seems to be the wrong approach.

I truly appreciate all the help I've been receiving in my quest to finish this rather elaborate spreadsheet.

Thanks, Mark
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default if cell is blank

Hi Mark,

Am Fri, 28 Jun 2013 17:45:52 +0100 schrieb Mark74w1:

=SUM(T8:U27)-(IF(ISBLANK('Cost Plus Invoice'!O8:O1500)," ",('Cost Plus
Invoice'!T8:U1500)))


try:
=SUM(T8:U27)-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1500=""),('Cost Plus
Invoice'!T8:T1500+'Cost Plus Invoice'!U8:U1500))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Junior Member
 
Posts: 16
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Mark,

Am Fri, 28 Jun 2013 17:45:52 +0100 schrieb Mark74w1:

=SUM(T8:U27)-(IF(ISBLANK('Cost Plus Invoice'!O8:O1500)," ",('Cost Plus
Invoice'!T8:U1500)))


try:
=SUM(T8:U27)-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1500=""),('Cost Plus
Invoice'!T8:T1500+'Cost Plus Invoice'!U8:U1500))


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Mr. Clause
I copied and pasted the formula and got a #REF! Error.
I checked that the formula spelled out correct places and it seems correct.

Mark
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default if cell is blank

Hi Mark,

Am Fri, 28 Jun 2013 23:45:32 +0100 schrieb Mark74w1:

I copied and pasted the formula and got a #REF! Error.
I checked that the formula spelled out correct places and it seems
correct.


the formula is tested and it works well. Did you pay attention about the
line break?


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #5   Report Post  
Junior Member
 
Posts: 16
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Mark,

Am Fri, 28 Jun 2013 23:45:32 +0100 schrieb Mark74w1:

I copied and pasted the formula and got a #REF! Error.
I checked that the formula spelled out correct places and it seems
correct.


the formula is tested and it works well. Did you pay attention about the
line break?


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Claus,
I entered:

=SUM(T8:U27)-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1320=""),('Cost Plus Invoice'!T8:T1320+'Cost Plus Invoice'!U8:U1320))

1. With a change of 1320 instead of 1500 thinking that (going past the bottom of the sheet where I hid the remaining rows)was the problem.
that didn't work.

2. I tried:
=SUM(T8:U27)-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1320=""),('Cost Plus Invoice'!T8:U1320)) That didn't work.

3. I thought the 6 merged cells weren't enough space (even reducing the font size from 9 to 8 and tried (what I guessed was the proper line brake ???) and that didn't work.

4. I even merged the entire bottom row so the formula did not have to go to a second line, and no success.

5. I also made the column "o" that has the cells (that contain letters or are blank) a currency so that they match the currency columns of my totals. No luck.

What am I doing wrong.

Did I explain correctly that the column "o" that contains rows of letters or blanks, needs to add all the $ amounts in the corresponding rows of column t8:u1320 (that are blank only) to the cell that contains the formula that I'm having trouble with.

I'm Certain that you deciphered that from my crude description of the scope of the formula.

Thanks, Mark

Last edited by Mark74w1 : June 29th 13 at 03:21 PM Reason: Left out (That are blank only)


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default if cell is blank

Hi Mark,

Am Sat, 29 Jun 2013 15:12:29 +0100 schrieb Mark74w1:

1. With a change of 1320 instead of 1500 thinking that (going past the
bottom of the sheet where I hid the remaining rows)was the problem.
that didn't work.


I don't know where your error is. Please look he
https://skydrive.live.com/#cid=9378A...121822A3%21326
for the workbook "Sumproduct"


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default if cell is blank

On Sat, 29 Jun 2013 15:12:29 +0100, Mark74w1 wrote:

3. I thought the 6 merged cells weren't enough space (even reducing the
font size from 9 to 8 and tried (what I guessed was the proper line
brake ???) and that didn't work.


The entire formula should be in one single cell; not in a bunch of merged cells; and you should eliminate the line break.
  #8   Report Post  
Junior Member
 
Posts: 16
Default

Quote:
Originally Posted by Claus Busch View Post
Hi Mark,

Am Sat, 29 Jun 2013 15:12:29 +0100 schrieb Mark74w1:

1. With a change of 1320 instead of 1500 thinking that (going past the
bottom of the sheet where I hid the remaining rows)was the problem.
that didn't work.


I don't know where your error is. Please look he
https://skydrive.live.com/#cid=9378A...121822A3%21326
for the workbook "Sumproduct"


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
Claus.
I think I think I see the problem.
When I looked at the file that you created, it works in all single cells.
In my spread sheet the cells are as follows:

Row 8 has column T & U merged on both the target sheet and the cost plus invoice sheet.

=SUM(T8:U27)[T8 & U8, T9 & U9 etc. are merged]-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1329=""),('Cost Plus Invoice'!T8[& U8, T9 & U9 are merged]:T1329+'Cost Plus Invoice'!U8:U1329)) (

There is only one sum in these merged cells [T8 & U8, Etc.] and the same applies for the sums on sheet [Cost plus Invoice T8 & U8 Etc.

Do the cells have to be un merged to work?

Thanks Mark
  #9   Report Post  
Junior Member
 
Posts: 16
Default

Quote:
Originally Posted by Mark74w1 View Post
Claus.
I think I think I see the problem.
When I looked at the file that you created, it works in all single cells.
In my spread sheet the cells are as follows:

Row 8 has column T & U merged on both the target sheet and the cost plus invoice sheet.

=SUM(T8:U27)[T8 & U8, T9 & U9 etc. are merged]-SUMPRODUCT(--('Cost Plus Invoice'!O8:O1329=""),('Cost Plus Invoice'!T8[& U8, T9 & U9 are merged]:T1329+'Cost Plus Invoice'!U8:U1329)) (

There is only one sum in these merged cells [T8 & U8, Etc.] and the same applies for the sums on sheet [Cost plus Invoice T8 & U8 Etc.

Do the cells have to be un merged to work?

Thanks Mark
Clause, I forgot to tell you that the target cells for the formula are also merged (two across and two down)
Thanks,Mark
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
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Start Cell B1 then find first blank cell, insert subtotal, next non blank, then next blank, sutotal cells in between......... [email protected][_2_] Excel Programming 2 June 7th 07 09:27 PM
Need macro to check if cell is not blank & previous cell is blank, copy information from row above & paste JenIT Excel Programming 4 April 12th 07 08:56 PM
Copy to first Blank cell in Colum C Non blank cells still exist be Ulrik loves horses Excel Programming 2 October 8th 06 07:35 PM
COPY A CONCATENATE CELL TO BLANK CELL PUTTING IN THE NEXT BLANK C. QUEST41067 Excel Discussion (Misc queries) 1 January 15th 05 09:29 PM


All times are GMT +1. The time now is 01:27 AM.

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"