Oct 15 2021 04:47 AM
Necesito una formula.
En una columna van hectáreas, de 1 a 700. Y en otra columna necesito una fórmula que me devuelva..
- Si el número de hectáreas es entre 1 a 250, la fórmula me tiene que devolver $10000.
- Si el número de hectáreas es entre 251 a 400, la fórmula me tiene que devolver $20000.
- Si el número de hectáreas es entre 401 a 700, la fórmula me tiene que devolver $30000.
Y si en la columna hectáreas no tengo valor cargado, o hay un cero, que me devuelva cero.
Como hago, alguien podría ayudarme?
Desde ya muchísimas gracias!!
Oct 15 2021 09:54 AM
Hello! You've posted your question in the Tech Community Discussion space, which is intended for discussion around the Tech Community website itself, not product questions. I'm moving your question to the Excel space - please post Excel questions here in the future.
Oct 15 2021 11:01 AM
=IF(AND(D3>=1,D3<=250),"$10000",
IF(AND(D3>=251,D3<=400),"$20000",
IF(AND(D3>=401,D3<=700),"$30000",
IF(OR(D3=0,D3=""),0))))
Enter your values in range D3:D80 for example. Enter above formula in F3 and copy down.
=LOOKUP(D3,{0.1.251.401.701},{0."$10000"."$20000"."$30000"})
Alternatively you can enter lookup formula to return results.
Oct 20 2021 01:17 PM
Oct 20 2021 02:56 PM
You could also use the equivalent of LOOKUP.
= LOOKUP(area,{1,251,401;10000,20000,30000})
or using Excel 365
= LET(
threshold, {1,251,401},
payment, {10000,20000,30000},
LOOKUP(area, threshold, payment))