Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default How to put a cap on an amount?

Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0))) I need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to put a cap on an amount?

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0))) I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default How to put a cap on an amount?

Thanks, Biff. As has happened several times in the past, you have provided
the perfect solution! Could I prevail on you to explain it for me? Why MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0))) I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to put a cap on an amount?

Why MIN and LOOKUP?

LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me? Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0))) I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default How to put a cap on an amount?

Thanks! That was a very good explanation. Hopefully, I'll be able to work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?


LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me? Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0))) I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to put a cap on an amount?

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks! That was a very good explanation. Hopefully, I'll be able to
work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?


LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me?
Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0)))
I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan








  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default How to put a cap on an amount?

Hi again, Biff

Sorry to bother again so soon, but I was wondering if you could tell me how
to exclude the $18 from just the "6,000 or less" part, as it seems I
misunderstood the requirements?

Thanks again
--
smither fan


"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks! That was a very good explanation. Hopefully, I'll be able to
work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?

LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me?
Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0)))
I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan









  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to put a cap on an amount?

Ok, let's go back to the nested IFs:

=MIN(500,IF(B5<0.01,0,IF(B5<=6000,B5*0.012,B5*0.00 9+18)))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi again, Biff

Sorry to bother again so soon, but I was wondering if you could tell me
how
to exclude the $18 from just the "6,000 or less" part, as it seems I
misunderstood the requirements?

Thanks again
--
smither fan


"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks! That was a very good explanation. Hopefully, I'll be able to
work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?

LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs
is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me?
Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0)))
I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan











  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 152
Default How to put a cap on an amount?

That works great! Thanks again.

Have a good week...
--
smither fan


"T. Valko" wrote:

Ok, let's go back to the nested IFs:

=MIN(500,IF(B5<0.01,0,IF(B5<=6000,B5*0.012,B5*0.00 9+18)))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi again, Biff

Sorry to bother again so soon, but I was wondering if you could tell me
how
to exclude the $18 from just the "6,000 or less" part, as it seems I
misunderstood the requirements?

Thanks again
--
smither fan


"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks! That was a very good explanation. Hopefully, I'll be able to
work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?

LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested IFs
is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you have
provided
the perfect solution! Could I prevail on you to explain it for me?
Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0)))
I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan












  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to put a cap on an amount?

You're welcome!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
That works great! Thanks again.

Have a good week...
--
smither fan


"T. Valko" wrote:

Ok, let's go back to the nested IFs:

=MIN(500,IF(B5<0.01,0,IF(B5<=6000,B5*0.012,B5*0.00 9+18)))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi again, Biff

Sorry to bother again so soon, but I was wondering if you could tell me
how
to exclude the $18 from just the "6,000 or less" part, as it seems I
misunderstood the requirements?

Thanks again
--
smither fan


"T. Valko" wrote:

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks! That was a very good explanation. Hopefully, I'll be able
to
work
other solutions with it in the future.

--
smither fan


"T. Valko" wrote:

Why MIN and LOOKUP?

LOOKUP is doing the exact same thing as the nested IFs but is a few
keystrokes shorter. Adding the +18 to every result of the nested
IFs
is
redundant since you just need to add it once.

You wanted to cap the result at 500.

Suppose B5 contained 65000.

65000 is 6000 so:

65000*0.009+18 = 603

So we use MIN to cap the result at 500:

=MIN(500,603) = 500

If B5 contained 50000:

50000 is 6000 so:

50000*0.009+18 = 468

=MIN(500,468) = 468


--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Thanks, Biff. As has happened several times in the past, you
have
provided
the perfect solution! Could I prevail on you to explain it for
me?
Why
MIN
and LOOKUP?

Have a good weekend.
--
smither fan


"T. Valko" wrote:

Try this:

=MIN(500,IF(B5<0.01,0,B5*LOOKUP(B5,{0;6001},{0.012 ;0.009})+18))

--
Biff
Microsoft Excel MVP


"Ross" wrote in message
...
Hi Everyone

The formula that I already have is:
=IF(B5<0.01,0,IF(B5<6001,(B5*0.012)+18,IF(B56000, (B5*0.009)+18,0)))
I
need
to add something to cap the result at 500. Can someone help?

Thanks...
--
smither fan














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
How to change amount in figure to amount in words? Lotis Excel Worksheet Functions 3 June 27th 07 04:34 AM
how to convert the amount in currency into the amount in words? Ken Excel Discussion (Misc queries) 1 November 7th 06 09:16 AM
Formula for amount owing subtract amount paid Taperchart Excel Worksheet Functions 1 June 4th 06 05:51 PM
How can I calculate amount of time left based on amount spent? KLD Excel Worksheet Functions 3 May 23rd 06 04:20 PM
How do I calculate Amount of Sales Tax from Total Amount? MikeS Excel Worksheet Functions 1 March 26th 05 07:49 PM


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