MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 26th, 2002, 12:14 PM   #1
Steve'n Ayr
 
Join Date: May 2002
Posts: 14
Default

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
Steve'n Ayr is offline   Reply With Quote
Old May 26th, 2002, 12:23 PM   #2
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
Default

Quote:
On 2002-05-26 06:14, Steve'n Ayr wrote:
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
Make sure that 'initial interview'!f84 indeed is the cell you have dropdown list.

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.

Aladin Akyurek is offline   Reply With Quote
Old May 26th, 2002, 12:47 PM   #3
Steve'n Ayr
 
Join Date: May 2002
Posts: 14
Default

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:
On 2002-05-26 06:23, Aladin Akyurek wrote:
Quote:
On 2002-05-26 06:14, Steve'n Ayr wrote:
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
Make sure that 'initial interview'!f84 indeed is the cell you have dropdown list.

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.

__________________
Steve'n Ayr
Steve'n Ayr is offline   Reply With Quote
Old May 26th, 2002, 01:52 PM   #4
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
Default


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 ]
Aladin Akyurek is offline   Reply With Quote
Old May 26th, 2002, 02:37 PM   #5
Steve'n Ayr
 
Join Date: May 2002
Posts: 14
Default

Quote:
On 2002-05-26 07:52, Aladin Akyurek wrote:

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 ]
__________________
Steve'n Ayr
Steve'n Ayr is offline   Reply With Quote
Old May 26th, 2002, 02:39 PM   #6
Steve'n Ayr
 
Join Date: May 2002
Posts: 14
Default

Quote:
On 2002-05-26 07:52, Aladin Akyurek wrote:

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 ]
I have done as you suggested and both return a false. The text in the drop down list and the text in the formula are the same. I have tried with a number of different items from the drop down list and the result is alway falxe.

I'm stumped!!

Thanks for your help

__________________
Steve'n Ayr
Steve'n Ayr is offline   Reply With Quote
Old May 26th, 2002, 02:51 PM   #7
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
Default

Quote:
On 2002-05-26 08:39, Steve'n Ayr wrote:
Quote:
On 2002-05-26 07:52, Aladin Akyurek wrote:

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 ]
I have done as you suggested and both return a false. The text in the drop down list and the text in the formula are the same. I have tried with a number of different items from the drop down list and the result is alway falxe.

I'm stumped!!

Thanks for your help
At least we have the diagnosis.

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?

Aladin Akyurek is offline   Reply With Quote
Old May 27th, 2002, 12:57 AM   #8
Steve'n Ayr
 
Join Date: May 2002
Posts: 14
Default

Quote:
On 2002-05-26 08:51, Aladin Akyurek wrote:
Quote:
On 2002-05-26 08:39, Steve'n Ayr wrote:
Quote:
On 2002-05-26 07:52, Aladin Akyurek wrote:

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 ]
I have done as you suggested and both return a false. The text in the drop down list and the text in the formula are the same. I have tried with a number of different items from the drop down list and the result is alway falxe.

I'm stumped!!

Thanks for your help
At least we have the diagnosis.

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?

The result of this equation is 1, the True (correct) response. How do I get it to work in the equation?
Steve'n Ayr is offline   Reply With Quote
Old May 27th, 2002, 03:57 AM   #9
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 36,221
Default


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
Aladin Akyurek is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump


All times are GMT +1. The time now is 06:42 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.