ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Match/Lookup Statements (https://www.excelbanter.com/excel-worksheet-functions/28971-match-lookup-statements.html)

Brian in FT W.

Match/Lookup Statements
 
I would like to create an equation that returns mult. results based on one
cell.

If "C1" = 4.0 - 3.5, =4.0
If "C1" = 3.49 - 2.5 = 3.0
If "C1" = 2.49 - 1.10 = 2.0
If "C1" = 1.09 - 0 = 0.0

I believe that I need a Lookup of Match Statment, but I'm not sure how to
write one. Thanks for the help!

N Harkawat


=VLOOKUP(C1,{0,0;1.1,2;2.5,3;3.5,4},2)*(AND(C1=0, C1<=4))
the *AND part of the formula will ensure that the values are within 0 and 4

"Brian in FT W." wrote in message
...
I would like to create an equation that returns mult. results based on one
cell.

If "C1" = 4.0 - 3.5, =4.0
If "C1" = 3.49 - 2.5 = 3.0
If "C1" = 2.49 - 1.10 = 2.0
If "C1" = 1.09 - 0 = 0.0

I believe that I need a Lookup of Match Statment, but I'm not sure how to
write one. Thanks for the help!




Arvi Laanemets

Hi

=(C11.09)*(ROUND(C1,0)+(C1<1.5))
formatted as number with 1 decimal

--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"Brian in FT W." wrote in message
...
I would like to create an equation that returns mult. results based on one
cell.

If "C1" = 4.0 - 3.5, =4.0
If "C1" = 3.49 - 2.5 = 3.0
If "C1" = 2.49 - 1.10 = 2.0
If "C1" = 1.09 - 0 = 0.0

I believe that I need a Lookup of Match Statment, but I'm not sure how to
write one. Thanks for the help!




Brian in FT W.

Thanks everyone, that worked!

"Arvi Laanemets" wrote:

Hi

=(C11.09)*(ROUND(C1,0)+(C1<1.5))
formatted as number with 1 decimal

--
Arvi Laanemets
( My real mail address: arvil<attarkon.ee )


"Brian in FT W." wrote in message
...
I would like to create an equation that returns mult. results based on one
cell.

If "C1" = 4.0 - 3.5, =4.0
If "C1" = 3.49 - 2.5 = 3.0
If "C1" = 2.49 - 1.10 = 2.0
If "C1" = 1.09 - 0 = 0.0

I believe that I need a Lookup of Match Statment, but I'm not sure how to
write one. Thanks for the help!






All times are GMT +1. The time now is 12:13 PM.

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