#1   Report Post  
GTUGoddess
 
Posts: n/a
Default complex function

I built a function some months ago, which works perfectly.

The difficulty is that the entire text in the cell is bracketed by "curly
brackets" ( { and } ). When I modify anything in the cell, those brackets go
away and the formula, even if I haven't actually changed anything, no longer
works.

I vaguely recall that there was some special keystroke combination or yoga
position I had to use when saving the changes in the cell, in order to not
disturb the curly brackets, but I cannot recall what they may be.

Here is the content of the cell when it's working, if it helps any:

{=SUM(IF(AF$4:AF$4000="A",IF(X$4:X$4000="Y",IF(AC$ 4:AC$4000="DM",AE$4:AE$4000,0),0),0))+SUM(IF(AF$4: AF$4000="A",IF(X$4:X$4000="I",IF(AC$4:AC$4000="DM" ,AE$4:AE$4000,0),0),0))}

Thanks for your help!!!

-DJW
  #2   Report Post  
Anne Troy
 
Posts: n/a
Default

Ctrl+Shift+Enter (or CSE) is an Array formula. :)
************
Anne Troy
www.OfficeArticles.com

"GTUGoddess" wrote in message
...
I built a function some months ago, which works perfectly.

The difficulty is that the entire text in the cell is bracketed by "curly
brackets" ( { and } ). When I modify anything in the cell, those brackets
go
away and the formula, even if I haven't actually changed anything, no
longer
works.

I vaguely recall that there was some special keystroke combination or yoga
position I had to use when saving the changes in the cell, in order to not
disturb the curly brackets, but I cannot recall what they may be.

Here is the content of the cell when it's working, if it helps any:

{=SUM(IF(AF$4:AF$4000="A",IF(X$4:X$4000="Y",IF(AC$ 4:AC$4000="DM",AE$4:AE$4000,0),0),0))+SUM(IF(AF$4: AF$4000="A",IF(X$4:X$4000="I",IF(AC$4:AC$4000="DM" ,AE$4:AE$4000,0),0),0))}

Thanks for your help!!!

-DJW



  #3   Report Post  
Aladin Akyurek
 
Posts: n/a
Default



GTUGoddess wrote:
I built a function some months ago, which works perfectly.

The difficulty is that the entire text in the cell is bracketed by "curly
brackets" ( { and } ). When I modify anything in the cell, those brackets go
away and the formula, even if I haven't actually changed anything, no longer
works.

I vaguely recall that there was some special keystroke combination or yoga
position I had to use when saving the changes in the cell, in order to not
disturb the curly brackets, but I cannot recall what they may be.

Here is the content of the cell when it's working, if it helps any:

{=SUM(IF(AF$4:AF$4000="A",IF(X$4:X$4000="Y",

IF(AC$4:AC$4000="DM",AE$4:AE$4000,0),0),0))+
SUM(IF(AF$4:AF$4000="A",
IF(X$4:X$4000="I",IF(AC$4:AC$4000="DM",AE$4:AE$400 0,0),0),0))}

Thanks for your help!!!

-DJW


You can avoid 'yoga position' with:

=SUMPRODUCT(--(AF$4:AF$4000="A"),--ISNUMBER(MATCH(X$4:X$4000,{"I","Y"},0)),--(AC$4:AC$4000="DM"),AE$4:AE$4000)

which needs just enter (instead of control+shift+enter your original
formula requires).
  #4   Report Post  
Flintstone
 
Posts: n/a
Default


Have a look here.

http://www.exceltip.com/st/Array_For..._Side/126.html


--
Flintstone
------------------------------------------------------------------------
Flintstone's Profile: http://www.excelforum.com/member.php...o&userid=15310
View this thread: http://www.excelforum.com/showthread...hreadid=469030

  #5   Report Post  
GTUGoddess
 
Posts: n/a
Default

Anne, Aladin and Flintstone,

Thank you all so much! I think I'll stick with CSE for now, given the time
crunch, but I definitely want to try Aladin's suggestion when I have a few
moments to play with it.

Thanks again!!!!

-DJW (GTUGoddess)

"GTUGoddess" wrote:

I built a function some months ago, which works perfectly.

The difficulty is that the entire text in the cell is bracketed by "curly
brackets" ( { and } ). When I modify anything in the cell, those brackets go
away and the formula, even if I haven't actually changed anything, no longer
works.

I vaguely recall that there was some special keystroke combination or yoga
position I had to use when saving the changes in the cell, in order to not
disturb the curly brackets, but I cannot recall what they may be.

Here is the content of the cell when it's working, if it helps any:

{=SUM(IF(AF$4:AF$4000="A",IF(X$4:X$4000="Y",IF(AC$ 4:AC$4000="DM",AE$4:AE$4000,0),0),0))+SUM(IF(AF$4: AF$4000="A",IF(X$4:X$4000="I",IF(AC$4:AC$4000="DM" ,AE$4:AE$4000,0),0),0))}

Thanks for your help!!!

-DJW

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


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