Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default restrict a product eg 10*5=40 because 40 is maximum

The product of two cells is reflected in the third cell e.g. Cell C1= Cell
A1*Cell B1. Cell A1 is a multiplier and Cell B2 is the amount to be
multiplied.

The issue is that the figure reflected in Cell C1 is an amount that is
required to be paid to a particular person and the excel is to be programmed
alike. However, there is a bar that if the product of Cell A1*B1 exceeds a
particular amount, the amount to be paid will be maximum so prescribed. Can
the product in Cell C1 be programmed to take care that if the product of Cell
A1*B1 exceeds that amount, it should show only the maximum amount.
Numerically:
Maximum prescribed=Rs.100. Case -I:- Cell A1=12, Cell B1=8 Therefore Cell
C1=96. The amount being less than the maximum does not pose any problem.

Case-II: Cell A1=15, Cell B1=8. Therefore Cell C1 results in 120. Can this
product be restrticted to show only 100 which is the maximum amount to be
paid.
I am working on MS Excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default restrict a product eg 10*5=40 because 40 is maximum

=min(40,a1*b1)
or
=if(a1*b140,40,a1*b1)



B.M.Gupta wrote:

The product of two cells is reflected in the third cell e.g. Cell C1= Cell
A1*Cell B1. Cell A1 is a multiplier and Cell B2 is the amount to be
multiplied.

The issue is that the figure reflected in Cell C1 is an amount that is
required to be paid to a particular person and the excel is to be programmed
alike. However, there is a bar that if the product of Cell A1*B1 exceeds a
particular amount, the amount to be paid will be maximum so prescribed. Can
the product in Cell C1 be programmed to take care that if the product of Cell
A1*B1 exceeds that amount, it should show only the maximum amount.
Numerically:
Maximum prescribed=Rs.100. Case -I:- Cell A1=12, Cell B1=8 Therefore Cell
C1=96. The amount being less than the maximum does not pose any problem.

Case-II: Cell A1=15, Cell B1=8. Therefore Cell C1 results in 120. Can this
product be restrticted to show only 100 which is the maximum amount to be
paid.
I am working on MS Excel 2003


--

Dave Peterson
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
Product Code and Product Description setup Nastyashman Excel Worksheet Functions 4 July 6th 09 05:48 PM
I need a product key for my Trail product, 2007 Microsoft Office s sltchsyi Setting up and Configuration of Excel 0 May 4th 09 01:32 AM
Chose a product and update related product variables hupjack Excel Programming 0 April 9th 09 11:57 PM
Convert numbers to text (from product id # to name of product) [email protected] Excel Programming 1 September 12th 07 09:58 PM
Vlookup code product and to copy commentary with photo of the product in vba [email protected] Excel Programming 0 October 2nd 06 03:54 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"