Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
In a data entry worksheet, I want to ensure that users select a certain
'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Pete
Post your formula -- Regards Roger Govier "Pete" wrote in message ... In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
My cells a
A B C Category Expense Check Administration $- formula here Full PRT Solution Development $- formula here Full PRT Solution Development $- formula here Product Development 4.5 $350.00 formula here My formula is: =IF(b10,IF(a1="Travel",,"Category Must Be Travel"),"OK") "Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=IF(AND(B10,OR(A1={"Travel","Category Must Be Travel"})),"OK"," Not OK")
"Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Maybe I should simplify it, take it one formula at a time.
Cell a1 = my category list, validation with dropdown. My statement = IF(a1="Travel","OK","Not OK") returns "FALSE" even if cell a1 = Travel. "Teethless mama" wrote: =IF(AND(B10,OR(A1={"Travel","Category Must Be Travel"})),"OK"," Not OK") "Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
ok, it seems that my IF statement will not work if the formula references a
cell that contains the validation list. Oye vey .... "Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If you may have leading or trailing space that will cause the problem.
This formula will remove leading/trailing spaces =IF(TRIM(A1)="Travel","OK","Not OK") "Pete" wrote: ok, it seems that my IF statement will not work if the formula references a cell that contains the validation list. Oye vey .... "Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
That did it, YOU ROK Teethless Mama.
Happy New Year!!! "Teethless mama" wrote: If you may have leading or trailing space that will cause the problem. This formula will remove leading/trailing spaces =IF(TRIM(A1)="Travel","OK","Not OK") "Pete" wrote: ok, it seems that my IF statement will not work if the formula references a cell that contains the validation list. Oye vey .... "Pete" wrote: In a data entry worksheet, I want to ensure that users select a certain 'category' for all expenses. I am using a validation list (with dropdown) for the Category. I then created this IF statement to check whether the user selected the right category for the expense. Unfortunately, my IF statement always results in FALSE, even when the Category is correct. Is it even possible to use IF statements with a validation list? My formula works great if I check a cell that does not use the validation list. Any thoughts? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Validation for list in a different workbook | Excel Discussion (Misc queries) | |||
Can Validation against a list do auto-fill in a cell? | Excel Discussion (Misc queries) | |||
Remove empty cells from named list / validation list | Excel Worksheet Functions | |||
validation list | Excel Worksheet Functions | |||
Dependent List (via Data Validation) Error | Excel Worksheet Functions |