![]() |
![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | MrExcel Online Store | Lost Password |
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: May 2002
Posts: 14
|
I am try to enter an if function formula that will refer to a merged cell in another worksheet. The merged cell contains a drop down menu created via Data/Validation/List. The if function returns a false value when it should return a true value.
The formula I am using is =if('initial interview'!f84="Strain/Sprain/Inflammation/Tendonitis",1,4) After selecting Strain/Sprain/Inflammation/Tendonitis from the drop down list the if formula still returns a false result. Can anyone help Thanks |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
|
Quote:
To check, activate the location of the dropdown list and read off the cell ref in the Name Box on the Formula Bar: the box should say F84. |
|
|
|
|
|
|
#3 | ||
|
Join Date: May 2002
Posts: 14
|
The cell reference is F84, my understanding is that the cell reference of merged cells is always the cell in the top left hand corner. In my case if merged F84, G84 and H84 to make a cell large enough to accommodate the longer items on the list.
Quote:
__________________
Steve'n Ayr |
||
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
|
The cell reference is F84, my understanding is that the cell reference of merged cells is always the cell in the top left hand corner. In my case if merged F84, G84 and H84 to make a cell large enough to accommodate the longer items on the list. Your understanding is right. Lets check another possibilty: Activate the cell of your formula =if('initial interview'!f84="Strain/Sprain/Inflammation/Tendonitis",1,4) and go to the Formula Bar, select the 'initial interview'!f84="Strain/Sprain/Inflammation/Tendonitis", hit F9. If you see FALSE, while it should be TRUE, then I suspect that "Strain/Sprain/Inflammation/Tendonitis" is different in the source of your dropdown list. Check this by doing what follows: Select first Strain/Sprain/Inflammation/Tendonitis in the dropdown list, then apply in an unused cell =LEN('initial interview'!f84)=LEN("Strain/Sprain/Inflammation/Tendonitis") If this gives false, they are indeed entered differently. [ This Message was edited by: Aladin Akyurek on 2002-05-26 07:53 ] |
|
|
|
|
|
#5 | |
|
Join Date: May 2002
Posts: 14
|
Quote:
__________________
Steve'n Ayr |
|
|
|
|
|
|
#6 | |
|
Join Date: May 2002
Posts: 14
|
Quote:
I'm stumped!! Thanks for your help
__________________
Steve'n Ayr |
|
|
|
|
|
|
#7 | ||
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
|
Quote:
Try: First, select Strain/Sprain/Inflammation/Tendonitis from the dropdown list in F84, then use: =IF(TRIM('initial interview'!F84)="Strain/Sprain/Inflammation/Tendonitis",1,4) What is the result? |
||
|
|
|
|
|
#8 | |||
|
Join Date: May 2002
Posts: 14
|
Quote:
|
|||
|
|
|
|
|
#9 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
|
The result of this equation is 1, the True (correct) response. How do I get it to work in the equation? =IF(TRIM('initial interview'!F84)="Strain/Sprain/Inflammation/Tendonitis",1,4) However, it would be much better if you'd get rid of the extra spaces around entries of the source list that you use for the dropdown list. Aladin |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|