ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER (https://www.excelbanter.com/excel-discussion-misc-queries/179346-how-do-i-multiply-value-not-more-than-certain-number.html)

Mnas

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38

Rick Rothstein \(MVP - VB\)[_180_]

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick


"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38



Tyro[_2_]

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
=IF(B1<=38, A1*B1, "?") You did not say what to do if B1 is greater than
38, so I return a ?

Tyro

"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38




David Biddulph[_2_]

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
=A1*MIN(B1,38)
--
David Biddulph

"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38




Jean-Guy

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
should be MIN(B1,38) right?

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick


"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38




Rick Rothstein \(MVP - VB\)[_181_]

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
Yes, MIN, of course... I read "not more than" and immediately thought MAX
without paying enough attention to the rest of the words around it. Thanks
for noting that.

Rick


"Jean-Guy" wrote in message
...
should be MIN(B1,38) right?

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick


"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38





Jean-Guy

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
Well I just coulnd't pass up the chance to correct an MVP :)

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Yes, MIN, of course... I read "not more than" and immediately thought MAX
without paying enough attention to the rest of the words around it. Thanks
for noting that.

Rick


"Jean-Guy" wrote in message
...
should be MIN(B1,38) right?

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick


"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38





Rick Rothstein \(MVP - VB\)[_184_]

HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER
 
Not such a big deal in my case... my MVP award is for the compiled version
of VB, not for Excel.<g

Rick


"Jean-Guy" wrote in message
...
Well I just coulnd't pass up the chance to correct an MVP :)

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Yes, MIN, of course... I read "not more than" and immediately thought MAX
without paying enough attention to the rest of the words around it.
Thanks
for noting that.

Rick


"Jean-Guy" wrote in message
...
should be MIN(B1,38) right?

Jean-Guy

"Rick Rothstein (MVP - VB)" wrote:

Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick


"Mnas" wrote in message
...
how to multiply two cells of certain values uptil a maximum value
eg.
multiply A1:B1 whereas B1 is not more than 38







All times are GMT +1. The time now is 06:02 AM.

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