I have several values in row 2. (B2. G2 .....)

In "B3" I have the value (Stock), which I will use to compare with row 2.

In "B1" will be the result

what I need is:

How to know if the sum of line 2 is equal to or less than "B3"

In my example form 4 cells to arrive at an approximate value of "B3" (10 + 15 + 10 + 10 = 45)

Result | 4 | |||||

SumRow | 10 | 15 | 10 | 10 | 20 | 15 |

Stock | 50 |

<colgroup><col><col><col span="5"></colgroup><tbody>

</tbody>