ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple Arguments (https://www.excelbanter.com/excel-worksheet-functions/76456-multiple-arguments.html)

dansargeant

Multiple Arguments
 

I am using this formula =COUNTIF(D6:D11,"K9-3")*1995. I want it to only
return true and multiply by 1995 if E6:E11 also contains "Local" rather
than "Distance". How can I enter the formula so it will check both
arguments?


--
dansargeant
------------------------------------------------------------------------
dansargeant's Profile: http://www.excelforum.com/member.php...o&userid=13852
View this thread: http://www.excelforum.com/showthread...hreadid=520943


Biff

Multiple Arguments
 
Hi!

Try this:

=SUMPRODUCT(--(D6:D11="K9-3"),--(E6:E11="Local"))*1995

Biff

"dansargeant"
wrote in message
...

I am using this formula =COUNTIF(D6:D11,"K9-3")*1995. I want it to only
return true and multiply by 1995 if E6:E11 also contains "Local" rather
than "Distance". How can I enter the formula so it will check both
arguments?


--
dansargeant
------------------------------------------------------------------------
dansargeant's Profile:
http://www.excelforum.com/member.php...o&userid=13852
View this thread: http://www.excelforum.com/showthread...hreadid=520943




dansargeant

Multiple Arguments
 

Hey,

Thanks Biff!! It worked great!!

DS


--
dansargeant
------------------------------------------------------------------------
dansargeant's Profile: http://www.excelforum.com/member.php...o&userid=13852
View this thread: http://www.excelforum.com/showthread...hreadid=520943


Biff

Multiple Arguments
 
You're welcome. Thanks for the feedback!

Biff

"dansargeant"
wrote in message
...

Hey,

Thanks Biff!! It worked great!!

DS


--
dansargeant
------------------------------------------------------------------------
dansargeant's Profile:
http://www.excelforum.com/member.php...o&userid=13852
View this thread: http://www.excelforum.com/showthread...hreadid=520943





All times are GMT +1. The time now is 09:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com