#1   Report Post  
MichelleExcelBeginner
 
Posts: n/a
Default Shorten Formulas

I read a previous entry where you explained how to shorten a formula...it
didn't really pertain to my needs. Can someone help? I have many g/l
accounts that I need to include in my formula. How can I shorten it. This is
an example of a formula that I have and it is one of the shortest ones I have.
...

=SUM(IF(VALUE(Sheet1!$A$2:$A$5481)=1,IF(VALUE(She et1!$B$2:$B$5481)=340010,IF(VALUE(Sheet1!$B$2:$B$ 5481)<=340060,Sheet1!$K$2:$K$5481,0),0),0)*-1,IF(VALUE(Sheet1!$A$2:$A$5481)=1,IF(VALUE(Sheet1 !$B$2:$B$5481)=341010,IF(VALUE(Sheet1!$B$2:$B$548 1)<=341060,Sheet1!$K$2:$K$5481,0),0),0)*-1)
--
Michelle
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(A2:A5481=1),((B2:B5481=340010)*(B2:B5481<=34006 0) +
(B2:B5481=341010)*(B2:B5481<=341060)),-K2:K5481)

In article ,
MichelleExcelBeginner wrote:

I read a previous entry where you explained how to shorten a formula...it
didn't really pertain to my needs. Can someone help? I have many g/l
accounts that I need to include in my formula. How can I shorten it. This is
an example of a formula that I have and it is one of the shortest ones I
have.
..

=SUM(IF(VALUE(Sheet1!$A$2:$A$5481)=1,IF(VALUE(She et1!$B$2:$B$5481)=340010,IF
(VALUE(Sheet1!$B$2:$B$5481)<=340060,Sheet1!$K$2:$K $5481,0),0),0)*-1,IF(VALUE(S
heet1!$A$2:$A$5481)=1,IF(VALUE(Sheet1!$B$2:$B$548 1)=341010,IF(VALUE(Sheet1!$
B$2:$B$5481)<=341060,Sheet1!$K$2:$K$5481,0),0),0)*-1)

  #3   Report Post  
MichelleExcelBeginner
 
Posts: n/a
Default

Thank you, I just gave it a try and it gives me the same end value...

What exactly is SUMPRODUCT? I haven't seen that before.

--
Michelle


"JE McGimpsey" wrote:

One way:

=SUMPRODUCT(--(A2:A5481=1),((B2:B5481=340010)*(B2:B5481<=34006 0) +
(B2:B5481=341010)*(B2:B5481<=341060)),-K2:K5481)

In article ,
MichelleExcelBeginner wrote:

I read a previous entry where you explained how to shorten a formula...it
didn't really pertain to my needs. Can someone help? I have many g/l
accounts that I need to include in my formula. How can I shorten it. This is
an example of a formula that I have and it is one of the shortest ones I
have.
..

=SUM(IF(VALUE(Sheet1!$A$2:$A$5481)=1,IF(VALUE(She et1!$B$2:$B$5481)=340010,IF
(VALUE(Sheet1!$B$2:$B$5481)<=340060,Sheet1!$K$2:$K $5481,0),0),0)*-1,IF(VALUE(S
heet1!$A$2:$A$5481)=1,IF(VALUE(Sheet1!$B$2:$B$548 1)=341010,IF(VALUE(Sheet1!$
B$2:$B$5481)<=341060,Sheet1!$K$2:$K$5481,0),0),0)*-1)


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

Take a look at Help.

For a little more, see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
MichelleExcelBeginner wrote:

What exactly is SUMPRODUCT? I haven't seen that before.

  #5   Report Post  
MichelleExcelBeginner
 
Posts: n/a
Default

Thank you again. This was very informative.

Michelle
--
Michelle


"JE McGimpsey" wrote:

Take a look at Help.

For a little more, see

http://www.mcgimpsey.com/excel/doubleneg.html

In article ,
MichelleExcelBeginner wrote:

What exactly is SUMPRODUCT? I haven't seen that before.




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
How to shorten formulas?? dwest100 Excel Discussion (Misc queries) 4 September 29th 05 10:25 AM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
Way to make Excel only run certain formulas on a worksheet? jrusso Excel Discussion (Misc queries) 0 January 12th 05 04:23 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 10:54 AM.

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

About Us

"It's about Microsoft Excel"