HOW DO I MULTIPLY BY A VALUE NOT MORE THAN A CERTAIN NUMBER

  • Thread starter Thread starter Mnas
  • Start date Start date
M

Mnas

how to multiply two cells of certain values uptil a maximum value eg.
multiply A1:B1 whereas B1 is not more than 38
 
Instead of using B1 in your multiplication, use MAX(B1,38) instead.

Rick
 
=IF(B1<=38, A1*B1, "?") You did not say what to do if B1 is greater than
38, so I return a ?

Tyro
 
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
 
Not such a big deal in my case... my MVP award is for the compiled version
of VB, not for Excel.<g>

Rick
 
Back
Top