Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default help with arrray formula

can someone help me out with an array formula again?

range e4:e56 will contain a number most of the time
this number can be appended with an x. over in column g there will be an
amount. the x will always be the last character
1234 1000
5678x 500
135 200

i need a formula to sum column g4:g56 based on each condition, each in a
separate cell.
one result = 1200. the other = 500

can somebody help?


--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default help with arrray formula

Here it is with a sumproduct formula. A little easier than an array formula
(in my opinion)

=SUMPRODUCT((RIGHT(TRIM(E4:E56), 1)="x")*G4:G56)

and

=SUMPRODUCT((RIGHT(TRIM(E4:E56), 1)<"x")*G4:G56)

You don't need to use Ctrl + Alt + Enter to use these formulas.

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

can someone help me out with an array formula again?

range e4:e56 will contain a number most of the time
this number can be appended with an x. over in column g there will be an
amount. the x will always be the last character
1234 1000
5678x 500
135 200

i need a formula to sum column g4:g56 based on each condition, each in a
separate cell.
one result = 1200. the other = 500

can somebody help?


--


Gary




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default help with arrray formula

worked perfectly, jim.

thanks

--


Gary


"Jim Thomlinson" wrote in message
...
Here it is with a sumproduct formula. A little easier than an array
formula
(in my opinion)

=SUMPRODUCT((RIGHT(TRIM(E4:E56), 1)="x")*G4:G56)

and

=SUMPRODUCT((RIGHT(TRIM(E4:E56), 1)<"x")*G4:G56)

You don't need to use Ctrl + Alt + Enter to use these formulas.

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:

can someone help me out with an array formula again?

range e4:e56 will contain a number most of the time
this number can be appended with an x. over in column g there will be an
amount. the x will always be the last character
1234 1000
5678x 500
135 200

i need a formula to sum column g4:g56 based on each condition, each in a
separate cell.
one result = 1200. the other = 500

can somebody help?


--


Gary






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default help with arrray formula

By assuming the last character either "x" or number, the arraf formula
is:

Condition1 ("x" as the last character):

=SUM(IF(RIGHT($E$4:$E$56,1)="x",$G$4:$G$56))

Condition1 (there is no "x" at the end):

=SUM(IF(RIGHT($E$4:$E$56,1)<"x",$G$4:$G$56))

Don't forget to press CTRL + SHIFT + ENTER after editing the formula.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default help with arrray formula

thanks

--


Gary


"broogle" wrote in message
ups.com...
By assuming the last character either "x" or number, the arraf formula
is:

Condition1 ("x" as the last character):

=SUM(IF(RIGHT($E$4:$E$56,1)="x",$G$4:$G$56))

Condition1 (there is no "x" at the end):

=SUM(IF(RIGHT($E$4:$E$56,1)<"x",$G$4:$G$56))

Don't forget to press CTRL + SHIFT + ENTER after editing the formula.



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
looking up multiple values in an arrray idaho_bruce Excel Worksheet Functions 5 September 12th 08 04:02 AM
{SUM(IF((ARRRAY FORMULA)} bookman3 Excel Worksheet Functions 8 October 18th 07 04:43 AM
Set a 2D arrray data into a range, given the top-left cell Tom Chau Excel Discussion (Misc queries) 2 June 29th 06 06:53 AM
Commenting custom formula fields/formula on formula editor Muxer Excel Programming 2 July 24th 03 01:02 AM


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