#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default IF formulas

I have a spreadsheet that contains three colums , one that contains text such
as "AP01, AP02, AP03), the second containing text such as "LJA014, NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one overall
cost, only if the conditions in both the text columns agree. I have tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to make
it work.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 293
Default IF formulas

Hi SonjaLouise,

Try: =SUMPRODUCT((M33:M1000="LJA14")*(W33:W1000="AP01") ,V33:V1000)

--
Cheers
macropod
[Microsoft MVP - Word]


"SonjaLouise" wrote in message ...
I have a spreadsheet that contains three colums , one that contains text such
as "AP01, AP02, AP03), the second containing text such as "LJA014, NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one overall
cost, only if the conditions in both the text columns agree. I have tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to make
it work.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default IF formulas

Try

=SUMPRODUCT(--(M33:M1000="LJA14"),--(W33:W1000="AP01"),V33:V1000)

If this post helps click Yes
---------------
Jacob Skaria


"SonjaLouise" wrote:

I have a spreadsheet that contains three colums , one that contains text such
as "AP01, AP02, AP03), the second containing text such as "LJA014, NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one overall
cost, only if the conditions in both the text columns agree. I have tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to make
it work.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default IF formulas

Thank you, this has proved very helpful. I,ve never used sumproduct before,
but I'm sure I'm going to get a lot of use from it now.

"macropod" wrote:

Hi SonjaLouise,

Try: =SUMPRODUCT((M33:M1000="LJA14")*(W33:W1000="AP01") ,V33:V1000)

--
Cheers
macropod
[Microsoft MVP - Word]


"SonjaLouise" wrote in message ...
I have a spreadsheet that contains three colums , one that contains text such
as "AP01, AP02, AP03), the second containing text such as "LJA014, NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one overall
cost, only if the conditions in both the text columns agree. I have tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to make
it work.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default IF formulas

Thank you, yes this was very helpful.

"Jacob Skaria" wrote:

Try

=SUMPRODUCT(--(M33:M1000="LJA14"),--(W33:W1000="AP01"),V33:V1000)

If this post helps click Yes
---------------
Jacob Skaria


"SonjaLouise" wrote:

I have a spreadsheet that contains three colums , one that contains text such
as "AP01, AP02, AP03), the second containing text such as "LJA014, NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one overall
cost, only if the conditions in both the text columns agree. I have tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to make
it work.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default IF formulas

Perhaps this link will help you out some...

http://www.xldynamic.com/source/xld.SUMPRODUCT.html

--
Rick (MVP - Excel)


"SonjaLouise" wrote in message
...
Thank you, this has proved very helpful. I,ve never used sumproduct
before,
but I'm sure I'm going to get a lot of use from it now.

"macropod" wrote:

Hi SonjaLouise,

Try: =SUMPRODUCT((M33:M1000="LJA14")*(W33:W1000="AP01") ,V33:V1000)

--
Cheers
macropod
[Microsoft MVP - Word]


"SonjaLouise" wrote in message
...
I have a spreadsheet that contains three colums , one that contains text
such
as "AP01, AP02, AP03), the second containing text such as "LJA014,
NHA003",
and the third containing the associated costs. I am trying to create a
formula that will add the costs of the third column to give me one
overall
cost, only if the conditions in both the text columns agree. I have
tried the
following -

=IF((M33:M1000)="LJA14",IF((W33:W1000)="AP01",SUM( V33:V1000),0),0)

but this gives me a #value error.

Is what I am trying to do possible, and if so how can I amend this to
make
it work.



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
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
lookup formulas dependent upon lookup formulas Skibee Excel Worksheet Functions 1 July 20th 07 01:06 PM
automatically copy formulas down columns or copy formulas all the HowlingBlue Excel Worksheet Functions 1 March 16th 07 11:11 PM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM
formulas for changing formulas? creativeops Excel Discussion (Misc queries) 4 January 26th 06 03:07 AM


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