ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Lookup function problems with True/False (https://www.excelbanter.com/excel-discussion-misc-queries/134516-lookup-function-problems-true-false.html)

pelsue

Lookup function problems with True/False
 
I have a column of 10 rows linked to 10 check boxes which change the values
in the column between true and false. There will be only one value of True in
the whole column at any one time. The column to its right acts as the result
vector column. I cannot get the lookup function to display the result vector
when a box is checked making its linked box true. Can any body help me with
this?

Thanks

Bob Phillips

Lookup function problems with True/False
 
I think you want something like

=INDEX(G1:G10,MATCH(TRUE,F1:F10,0))

or

=VLOOKUP(TRUE,F1:G10,2,FALSE)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pelsue" wrote in message
...
I have a column of 10 rows linked to 10 check boxes which change the values
in the column between true and false. There will be only one value of True
in
the whole column at any one time. The column to its right acts as the
result
vector column. I cannot get the lookup function to display the result
vector
when a box is checked making its linked box true. Can any body help me
with
this?

Thanks




Toppers

Lookup function problems with True/False
 
This will return the index of the linked box (C1 to C10) which is TRUE

=MATCH(TRUE,C1:C10,0)

HTH

"pelsue" wrote:

I have a column of 10 rows linked to 10 check boxes which change the values
in the column between true and false. There will be only one value of True in
the whole column at any one time. The column to its right acts as the result
vector column. I cannot get the lookup function to display the result vector
when a box is checked making its linked box true. Can any body help me with
this?

Thanks



All times are GMT +1. The time now is 07:05 PM.

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