A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel IF/LARGE Function problem



 
 
Thread Tools Display Modes
  #21  
Old July 16th, 2004, 09:00 AM
Leo Heuser
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

"Harlan Grove" skrev i en meddelelse
...

Did you overlook this piece of my message:

"If there were 5 bonus levels, enter the bonuses in descending
order in K2:K6 and enter 0 in K7. Name K2:K7 Bonus (it needs to
include the 0 in K7)."


Yes, I overlooked it. My mistake.


No-thanks for the feedback.


Fine, but do try not to misread other people's posts. If you were to try
exercising greater care in your reading, you might just possibly learn
something.


If you had just the slightest sense of humour, we would all enjoy
the absence of such remarks.

LeoH


  #22  
Old July 16th, 2004, 09:09 AM
Harlan Grove
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

"Leo Heuser" wrote...
....
If you had just the slightest sense of humour, we would all enjoy
the absence of such remarks.


I do, but it's not like yours. What you're really trying to say is that if
*I* acted more like *YOU*, *YOU*'d be happier. Not a chance.


  #23  
Old July 16th, 2004, 11:58 AM
andyp161
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

Thanks to everyone for there feedback - the problem is solved.

Kind regards


---
Message posted from http://www.ExcelForum.com/

  #24  
Old July 16th, 2004, 06:10 PM
hgrove
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

Harlan Grove wrote...
...
Using a 20-row sample data range in A2:B21 and the following
Bonus range *INCLUDING* the zero value as the final entry,

...
and changing my cell C2 formula to

=INDEX(Bonus,MIN(SUMPRODUCT((B$2:B$21=B2)
/COUNTIF(B$2:B$21,B$2:B$21)),ROWS(Bonus)))

...

The range of bonus amounts also isn't necessary if there are 27 or
fewer bonus levels. Use CHOOSE and put the bonus amounts into the
formula. Here's a 3-level formula. Note that the second argument to MIN
must be one more than the number of levels, and the final argument to
CHOOSE must be 0.

C2:
=CHOOSE(MIN(SUMPRODUCT((B$2:B$21=B2)
/COUNTIF(B$2:B$21,B$2:B$21)),4),1000,500,250,0)


---
Message posted from http://www.ExcelForum.com/

  #25  
Old July 18th, 2004, 04:09 PM
andyp161
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

Hi Leo,

Thank you for the formula you posted as below. No matter how hard I
try, I cannot seem to establish a logical pattern in order to extend it
to a fourth and final bonus of 75. I'd really appreciate your help
and, if possible, a brief explanation so that I might be able to create
similar formulae myself in the future...

=(B2=MAX($B$2:$B$13))*500+(B2=LARGE($B$2:$B$13,COU NTIF($B$2:$B$13,MAX($B$2:$B$13))+1))*250+(B2=LARGE ($B$2:$B$13,COUNTIF($B$2:$B$13,LARGE($B$2:$B$13,CO UNTIF($B$2:$B$13,MAX($B$2:$B$13))+1))+COUNTIF($B$2 :$B$13,MAX($B$2:$B$13))+1))*125

Kind regatds


---
Message posted from http://www.ExcelForum.com/

  #26  
Old July 18th, 2004, 08:19 PM
Leo Heuser
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

Hi Andy

I appreciate your feedback, but it really isn't worth the trouble
extending the formula. My second solution from the 15th with
the named formulae is a better choice. However, you should go
for Harlan's formula. It's the best choice for your problem.

--
Best Regards
Leo Heuser

Followup to newsgroup only please.

"andyp161 " skrev i en meddelelse
...
Hi Leo,

Thank you for the formula you posted as below. No matter how hard I
try, I cannot seem to establish a logical pattern in order to extend it
to a fourth and final bonus of 75. I'd really appreciate your help
and, if possible, a brief explanation so that I might be able to create
similar formulae myself in the future...


=(B2=MAX($B$2:$B$13))*500+(B2=LARGE($B$2:$B$13,COU NTIF($B$2:$B$13,MAX($B$2:$
B$13))+1))*250+(B2=LARGE($B$2:$B$13,COUNTIF($B$2:$ B$13,LARGE($B$2:$B$13,COUN
TIF($B$2:$B$13,MAX($B$2:$B$13))+1))+COUNTIF($B$2:$ B$13,MAX($B$2:$B$13))+1))*
125

Kind regatds


---
Message posted from http://www.ExcelForum.com/





  #27  
Old July 19th, 2004, 12:43 PM
andyp161
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

I cannot seem to set this formula within the ISERROR function - could
someone please help me??

=CHOOSE(MIN(SUMPRODUCT((K$2:K$79=K2)/COUNTIF(K$2:K$79,K$2:K$79)),5),500,250,125,75,"")


Kind regards


---
Message posted from http://www.ExcelForum.com/

  #28  
Old July 19th, 2004, 07:00 PM
andyp161
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

Hi,

Is it possible to extend the formula Harlon posted across a broken
array ie (B2:B21,B23:B30,B32:B41), so that except for the exclusions,
the array is essentially B2:B41?

C2:
=CHOOSE(MIN(SUMPRODUCT((B$2:B$21=B2)/COUNTIF(B$2:B$21,B$2:B$21)),4),1000,500,250,0)

Many thanks


---
Message posted from http://www.ExcelForum.com/

  #29  
Old July 20th, 2004, 12:44 AM
hgrove
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

andyp161 wrote...
I cannot seem to set this formula within the ISERROR function -
could someone please help me??


=CHOOSE(MIN(SUMPRODUCT((K$2:K$79=K2)
/COUNTIF(K$2:K$79,K$2:K$79)),5),500,250,125,75,"")


So what error or problem arises from entering

=IF(CHOOSE(MIN(SUMPRODUCT((K$2:K$79=K2)
/COUNTIF(K$2:K$79,K$2:K$79)),5),500,250,125,75,"") 0,
CHOOSE(MIN(SUMPRODUCT((K$2:K$79=K2)
/COUNTIF(K$2:K$79,K$2:K$79)),5),500,250,125,75,""), "")

?

If you mean something different, post your formula and explain
*PRECISELY* what's not working.


---
Message posted from http://www.ExcelForum.com/

  #30  
Old July 20th, 2004, 01:03 AM
hgrove
external usenet poster
 
Posts: n/a
Default Excel IF/LARGE Function problem

andyp161 wrote...
...

*FIRST* don't change subject lines. It screws up Google Groups
archives. [Also, ignore ExcelForum's claim that subject lines are
optional. In ExcelForum that may be so, but not in USENET. When in
doubt, follow USENET procedures and ignore ExcelForum.]

*SECOND* don't misspell people's names!

Is it possible to extend the formula Harlan [corrected] posted
across a broken array ie (B2:B21,B23:B30,B32:B41), so that
except for the exclusions, the array is essentially B2:B41?

...

Not easily. It's much easier to add a masking term to the numerator in
SUMPRODUCT than to use multiple area ranges.

What are in cells B22 and B31? If they don't contain numbers, you
should be able to use

C2:
=CHOOSE(MIN(SUMPRODUCT((B$2:B$41=B2)
*ISNUMBER(B$2:B$41)/COUNTIF(B$2:B$21,B$2:B$21)),
4),1000,500,250,0)

If B22 and B31 do contain numbers, what do A22 and A31 contain? If
their contents differ significantly from (A2:A21,A23:A30,A32:A40), it
may be possible to change the ISNUMBER call above to a different
expression masking out the A22 and A31 values.


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Office Excel aphmhidc Worksheet Functions 1 June 3rd, 2004 03:41 PM
Mouse Wheel Function Lost in Excel VBA 2003 Sid Setting up and Configuration 2 April 10th, 2004 02:53 AM
Excel XP Nested If Function Problem DaffyD® Worksheet Functions 2 March 6th, 2004 07:46 PM
GETPIVOTDATA function in Excel 2000 LS Worksheet Functions 1 February 26th, 2004 12:54 PM


All times are GMT +1. The time now is 12:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.