Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default Problems with copying functions

I used an "IF" function to make a column Q of "y" and "n" entries, as such:

=IF(P30,"Y","N")

I then used the following function:

=IF(Lines!$Q$3:$Q$57="n",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

i repeated the function for "y":

=IF(Lines!$Q$3:$Q$57="y",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

For some reason it will calculate the first formula, but not the second when
i paste it to another column. i
don't understand why it works for one and not the other...any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Problems with copying functions

Hi,

It;s an array so when you copy the formula commit it by pressing
Ctrl+Shift+Enter

Mike

"martinbarnes" wrote:

I used an "IF" function to make a column Q of "y" and "n" entries, as such:

=IF(P30,"Y","N")

I then used the following function:

=IF(Lines!$Q$3:$Q$57="n",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

i repeated the function for "y":

=IF(Lines!$Q$3:$Q$57="y",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

For some reason it will calculate the first formula, but not the second when
i paste it to another column. i
don't understand why it works for one and not the other...any ideas?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Problems with copying functions

Check your earlier post.

martinbarnes wrote:

I used an "IF" function to make a column Q of "y" and "n" entries, as such:

=IF(P30,"Y","N")

I then used the following function:

=IF(Lines!$Q$3:$Q$57="n",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

i repeated the function for "y":

=IF(Lines!$Q$3:$Q$57="y",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

For some reason it will calculate the first formula, but not the second when
i paste it to another column. i
don't understand why it works for one and not the other...any ideas?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Problems with copying functions

Do these SUMPRODUCT formulas give the results you are looking for?

=SUMPRODUCT((Lines!$Q$3:$Q$57="n")*(Lines!$I$3:$I$ 57=0)*(Lines!$F$3:$F$57))

=SUMPRODUCT((Lines!$Q$3:$Q$57="y")*(Lines!$I$3:$I$ 57=0)*(Lines!$F$3:$F$57))

Hope this helps,

Hutch

"martinbarnes" wrote:

I used an "IF" function to make a column Q of "y" and "n" entries, as such:

=IF(P30,"Y","N")

I then used the following function:

=IF(Lines!$Q$3:$Q$57="n",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

i repeated the function for "y":

=IF(Lines!$Q$3:$Q$57="y",SUMIF(Lines!$I$3:$I$57,"= 0",Lines!$F$3:$F$57),0)

For some reason it will calculate the first formula, but not the second when
i paste it to another column. i
don't understand why it works for one and not the other...any ideas?

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
Having a few problems If functions and using 'or' davidrostron Excel Discussion (Misc queries) 2 July 12th 06 11:09 AM
Problems copying XLA file Trefor Excel Discussion (Misc queries) 3 November 28th 05 04:04 PM
Problems with functions Manu Palao Excel Worksheet Functions 1 November 10th 04 04:51 PM
Problems with functions Manu Palao Excel Worksheet Functions 1 November 10th 04 09:51 AM
Problems with functions Manu Palao Excel Worksheet Functions 1 November 9th 04 05:00 PM


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