PC Review


Reply
Thread Tools Rate Thread

Conditional formula

 
 
nordiyu
Guest
Posts: n/a
 
      20th Apr 2010
Date Name Approved Total
12-Jan-10 John Yes $120.00
15-Jan-10 Mike Yes $50.00
20-Jan-10 John No $300.00
31-Jan-10 John Yes $80.00
02-Feb-10 Mike Yes $50.00
05-Feb-10 John Yes $180.00


Sir,
Needs yr help to formulated how to find out the approved name with highest
(total $) for the month jan 2010. (expected result for above condition : Jan
2010 - John - $200.00)
 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      20th Apr 2010
I think this formula will do what you want...

=SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")*(C1:C1000="Yes")*D11000)

--
Rick (MVP - Excel)



"nordiyu" <(E-Mail Removed)> wrote in message
news:59A8885C-62AF-448B-B4E4-(E-Mail Removed)...
> Date Name Approved Total
> 12-Jan-10 John Yes $120.00
> 15-Jan-10 Mike Yes $50.00
> 20-Jan-10 John No $300.00
> 31-Jan-10 John Yes $80.00
> 02-Feb-10 Mike Yes $50.00
> 05-Feb-10 John Yes $180.00
>
>
> Sir,
> Needs yr help to formulated how to find out the approved name with highest
> (total $) for the month jan 2010. (expected result for above condition :
> Jan
> 2010 - John - $200.00)


 
Reply With Quote
 
FSt1
Guest
Posts: n/a
 
      20th Apr 2010
hi
try this...
=SUMPRODUCT((D210)*--(C2:C10="yes")*--(B2:B10="John")*((MONTH(A2:A10)=1)))

careful. formula wraped .
where D = amount
and C = approved
and B = name
and A = date

adjust ranges to fit your data.

regards
FSt1
"nordiyu" wrote:

> Date Name Approved Total
> 12-Jan-10 John Yes $120.00
> 15-Jan-10 Mike Yes $50.00
> 20-Jan-10 John No $300.00
> 31-Jan-10 John Yes $80.00
> 02-Feb-10 Mike Yes $50.00
> 05-Feb-10 John Yes $180.00
>
>
> Sir,
> Needs yr help to formulated how to find out the approved name with highest
> (total $) for the month jan 2010. (expected result for above condition : Jan
> 2010 - John - $200.00)

 
Reply With Quote
 
Fred Smith
Guest
Posts: n/a
 
      20th Apr 2010
You need either multiplication, or double unary. You don't need both. So
=SUMPRODUCT((D210)*(C2:C10="yes")*(B2:B10="John")*(MONTH(A2:A10)=1))
will do.

Fred

"FSt1" <(E-Mail Removed)> wrote in message
news:49F98E89-C9CC-4D40-BC44-(E-Mail Removed)...
> hi
> try this...
> =SUMPRODUCT((D210)*--(C2:C10="yes")*--(B2:B10="John")*((MONTH(A2:A10)=1)))
>
> careful. formula wraped .
> where D = amount
> and C = approved
> and B = name
> and A = date
>
> adjust ranges to fit your data.
>
> regards
> FSt1
> "nordiyu" wrote:
>
>> Date Name Approved Total
>> 12-Jan-10 John Yes $120.00
>> 15-Jan-10 Mike Yes $50.00
>> 20-Jan-10 John No $300.00
>> 31-Jan-10 John Yes $80.00
>> 02-Feb-10 Mike Yes $50.00
>> 05-Feb-10 John Yes $180.00
>>
>>
>> Sir,
>> Needs yr help to formulated how to find out the approved name with
>> highest
>> (total $) for the month jan 2010. (expected result for above condition :
>> Jan
>> 2010 - John - $200.00)


 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      20th Apr 2010
To both FSt1 and Fred Smith.... I would be careful about using
(MONTH(A2:A10)=1) as one of the criteria because if the data spans more than
one year, you will pick up January results for all years listed.

--
Rick (MVP - Excel)



"Fred Smith" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You need either multiplication, or double unary. You don't need both. So
> =SUMPRODUCT((D210)*(C2:C10="yes")*(B2:B10="John")*(MONTH(A2:A10)=1))
> will do.
>
> Fred
>
> "FSt1" <(E-Mail Removed)> wrote in message
> news:49F98E89-C9CC-4D40-BC44-(E-Mail Removed)...
>> hi
>> try this...
>> =SUMPRODUCT((D210)*--(C2:C10="yes")*--(B2:B10="John")*((MONTH(A2:A10)=1)))
>>
>> careful. formula wraped .
>> where D = amount
>> and C = approved
>> and B = name
>> and A = date
>>
>> adjust ranges to fit your data.
>>
>> regards
>> FSt1
>> "nordiyu" wrote:
>>
>>> Date Name Approved Total
>>> 12-Jan-10 John Yes $120.00
>>> 15-Jan-10 Mike Yes $50.00
>>> 20-Jan-10 John No $300.00
>>> 31-Jan-10 John Yes $80.00
>>> 02-Feb-10 Mike Yes $50.00
>>> 05-Feb-10 John Yes $180.00
>>>
>>>
>>> Sir,
>>> Needs yr help to formulated how to find out the approved name with
>>> highest
>>> (total $) for the month jan 2010. (expected result for above condition :
>>> Jan
>>> 2010 - John - $200.00)

>

 
Reply With Quote
 
Jacob Skaria
Guest
Posts: n/a
 
      20th Apr 2010
Rick

When referring the 1st row (header) the last * should be a , (comma) or else
it will return #value error

=SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")
*(C1:C1000="Yes"),D11000)

I am still not sure whether the OP is looking for this as the query is to
find out the approved ** name ** with highest total ...

--
Jacob (MVP - Excel)


"Rick Rothstein" wrote:

> I think this formula will do what you want...
>
> =SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")*(C1:C1000="Yes")*D11000)
>
> --
> Rick (MVP - Excel)
>
>
>
> "nordiyu" <(E-Mail Removed)> wrote in message
> news:59A8885C-62AF-448B-B4E4-(E-Mail Removed)...
> > Date Name Approved Total
> > 12-Jan-10 John Yes $120.00
> > 15-Jan-10 Mike Yes $50.00
> > 20-Jan-10 John No $300.00
> > 31-Jan-10 John Yes $80.00
> > 02-Feb-10 Mike Yes $50.00
> > 05-Feb-10 John Yes $180.00
> >
> >
> > Sir,
> > Needs yr help to formulated how to find out the approved name with highest
> > (total $) for the month jan 2010. (expected result for above condition :
> > Jan
> > 2010 - John - $200.00)

>
> .
>

 
Reply With Quote
 
Rick Rothstein
Guest
Posts: n/a
 
      20th Apr 2010
Actually, I posted my "quick test" formula... I meant to change the Row 1
references to Row 2 references and make mention that I had assumed Row 1
contained headers, but I forgot to do so.

--
Rick (MVP - Excel)



"Jacob Skaria" <(E-Mail Removed)> wrote in message
news:AB1B9101-EE0E-4465-B138-(E-Mail Removed)...
> Rick
>
> When referring the 1st row (header) the last * should be a , (comma) or
> else
> it will return #value error
>
> =SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")
> *(C1:C1000="Yes"),D11000)
>
> I am still not sure whether the OP is looking for this as the query is to
> find out the approved ** name ** with highest total ...
>
> --
> Jacob (MVP - Excel)
>
>
> "Rick Rothstein" wrote:
>
>> I think this formula will do what you want...
>>
>> =SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")*(C1:C1000="Yes")*D11000)
>>
>> --
>> Rick (MVP - Excel)
>>
>>
>>
>> "nordiyu" <(E-Mail Removed)> wrote in message
>> news:59A8885C-62AF-448B-B4E4-(E-Mail Removed)...
>> > Date Name Approved Total
>> > 12-Jan-10 John Yes $120.00
>> > 15-Jan-10 Mike Yes $50.00
>> > 20-Jan-10 John No $300.00
>> > 31-Jan-10 John Yes $80.00
>> > 02-Feb-10 Mike Yes $50.00
>> > 05-Feb-10 John Yes $180.00
>> >
>> >
>> > Sir,
>> > Needs yr help to formulated how to find out the approved name with
>> > highest
>> > (total $) for the month jan 2010. (expected result for above condition
>> > :
>> > Jan
>> > 2010 - John - $200.00)

>>
>> .
>>

 
Reply With Quote
 
nordiyu
Guest
Posts: n/a
 
      21st Apr 2010
Sir,
Thank for yr respon.
how to find out who a the highest amount for jan 2010

Month Name Amount
Jan 2010 ? ?

tq
nordiyu

"Jacob Skaria" wrote:

> Rick
>
> When referring the 1st row (header) the last * should be a , (comma) or else
> it will return #value error
>
> =SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")
> *(C1:C1000="Yes"),D11000)
>
> I am still not sure whether the OP is looking for this as the query is to
> find out the approved ** name ** with highest total ...
>
> --
> Jacob (MVP - Excel)
>
>
> "Rick Rothstein" wrote:
>
> > I think this formula will do what you want...
> >
> > =SUMPRODUCT((TEXT(A1:A1000,"mmmyyyy")="Jan2010")*(B1:B1000="John")*(C1:C1000="Yes")*D11000)
> >
> > --
> > Rick (MVP - Excel)
> >
> >
> >
> > "nordiyu" <(E-Mail Removed)> wrote in message
> > news:59A8885C-62AF-448B-B4E4-(E-Mail Removed)...
> > > Date Name Approved Total
> > > 12-Jan-10 John Yes $120.00
> > > 15-Jan-10 Mike Yes $50.00
> > > 20-Jan-10 John No $300.00
> > > 31-Jan-10 John Yes $80.00
> > > 02-Feb-10 Mike Yes $50.00
> > > 05-Feb-10 John Yes $180.00
> > >
> > >
> > > Sir,
> > > Needs yr help to formulated how to find out the approved name with highest
> > > (total $) for the month jan 2010. (expected result for above condition :
> > > Jan
> > > 2010 - John - $200.00)

> >
> > .
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue Microsoft Excel Misc 2 11th Jul 2007 06:08 PM
How do I do a complex conditional in a conditional formatting formula Ray Stevens Microsoft Excel Discussion 7 12th Mar 2006 10:24 PM
Multiple conditional on conditional format formula Frank Kabel Microsoft Excel Programming 1 27th Jul 2004 06:24 PM
Re: Multiple conditional on conditional format formula Bob Phillips Microsoft Excel Programming 0 27th Jul 2004 05:30 PM
Excel Formula - IF Formula & Conditional Formatting rhhince Microsoft Excel Worksheet Functions 1 20th Jun 2004 06:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.