Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sum until next blank

I want to create an if statement in excel that fits into the following

=if(H10="",sum(H11:*****Here*****),IF(G11="","",G1 1*IF(ISNA(VLOOKUP(F11,A:H,8,FALSE))=TRUE,VLOOKUP(F 11,PRICING!A:C,3,FALSE),VLOOKUP(F11,A:H,8,FALSE))) )

where here is the next cell with a value of ""

which would effectively do the following and be a completely coded column
without any need for change


SUM
number
number
number
number

SUM
Number
Number
Number

SUM
Number
Number
Number
Number
Number
Number

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default sum until next blank

=IF(H10="",SUM(H11:INDEX(H:H,MIN(IF(H11:H1000="",R OW(H11:H1000))))),IF(G11="","",G11*IF(ISNA(VLOOKUP (F11,A:H,8,FALSE))=TRUE,VLOOKUP(F11,PRICING!A:C,3, FALSE),VLOOKUP(F11,A:H,8,FALSE))))

this is now an array formula, so commit with Ctrl-Shift-Enetr, not just
Enter.

--
__________________________________
HTH

Bob

"woozlemonk" wrote in message
...
I want to create an if statement in excel that fits into the following

=if(H10="",sum(H11:*****Here*****),IF(G11="","",G1 1*IF(ISNA(VLOOKUP(F11,A:H,8,FALSE))=TRUE,VLOOKUP(F 11,PRICING!A:C,3,FALSE),VLOOKUP(F11,A:H,8,FALSE))) )

where here is the next cell with a value of ""

which would effectively do the following and be a completely coded column
without any need for change


SUM
number
number
number
number

SUM
Number
Number
Number

SUM
Number
Number
Number
Number
Number
Number



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default sum until next blank



it returned a #value

I did however notice an error I made in typing it out into here..
it should have been sum (H12:***here***)

to clarify
I need to be able to post it into every cell in the column but the top two
but to be able to copy and paste into the column the code in the future

I'm already using most of that code
example:

""
=SUM(H4:H9)
=IF(G4="","",G4*IF(ISNA(VLOOKUP(F4,A:H,8,FALSE))=T RUE,VLOOKUP(F4,PRICING!A:C,3,FALSE),VLOOKUP(F4,A:H ,8,FALSE)))
=IF(G5="","",G5*IF(ISNA(VLOOKUP(F5,A:H,8,FALSE))=T RUE,VLOOKUP(F5,PRICING!A:C,3,FALSE),VLOOKUP(F5,A:H ,8,FALSE)))
=IF(G6="","",G6*IF(ISNA(VLOOKUP(F6,A:H,8,FALSE))=T RUE,VLOOKUP(F6,PRICING!A:C,3,FALSE),VLOOKUP(F6,A:H ,8,FALSE)))
=IF(G7="","",G7*IF(ISNA(VLOOKUP(F7,A:H,8,FALSE))=T RUE,VLOOKUP(F7,PRICING!A:C,3,FALSE),VLOOKUP(F7,A:H ,8,FALSE)))
=IF(G8="","",G8*IF(ISNA(VLOOKUP(F8,A:H,8,FALSE))=T RUE,VLOOKUP(F8,PRICING!A:C,3,FALSE),VLOOKUP(F8,A:H ,8,FALSE)))
""

and then again in a similar fashion but with differant numbers of items in
the string

I wish to integrate the sum code into the rest of it and make it check for
the blanks to define the area so that I have a single code for the entire
column copied and pasted regardless of the rest of the worksheet

I should clarify I'm using 2003

thanks
Dave


"Bob Phillips" wrote:

=IF(H10="",SUM(H11:INDEX(H:H,MIN(IF(H11:H1000="",R OW(H11:H1000))))),IF(G11="","",G11*IF(ISNA(VLOOKUP (F11,A:H,8,FALSE))=TRUE,VLOOKUP(F11,PRICING!A:C,3, FALSE),VLOOKUP(F11,A:H,8,FALSE))))

this is now an array formula, so commit with Ctrl-Shift-Enetr, not just
Enter.

--
__________________________________
HTH

Bob

"woozlemonk" wrote in message
...
I want to create an if statement in excel that fits into the following

=if(H10="",sum(H11:*****Here*****),IF(G11="","",G1 1*IF(ISNA(VLOOKUP(F11,A:H,8,FALSE))=TRUE,VLOOKUP(F 11,PRICING!A:C,3,FALSE),VLOOKUP(F11,A:H,8,FALSE))) )

where here is the next cell with a value of ""

which would effectively do the following and be a completely coded column
without any need for change


SUM
number
number
number
number

SUM
Number
Number
Number

SUM
Number
Number
Number
Number
Number
Number




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
Index/match - make blank cells return a blank value. diaare Excel Worksheet Functions 3 May 3rd 23 03:44 AM
Average Formula to display blank cell if named range is blank Rachael F Excel Worksheet Functions 3 February 22nd 08 05:05 PM
Not showing blank and non blank items in filter mode for values Bhaskar Polisetty Excel Worksheet Functions 0 June 20th 06 02:04 PM
Imported Data creates blank cells that aren't really blank JackieD Excel Worksheet Functions 14 February 23rd 06 12:57 AM
conditional formatting:highlight row based on blank or non-blank c Nat Maxwell Excel Discussion (Misc queries) 2 November 30th 05 10:30 PM


All times are GMT +1. The time now is 12:27 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"