Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Now With Index -- IF Function Does Not Work With Cell Reference

Actually I made a mistake. And it was not a space issue.

A1 contains the following:

=INDEX($D$1:$D$700,R15)

and it returns the "<".

If I use an IF function that says =IF(A1="<","Curly","Larry") I
get Larry.

How can I fix this so that when I reference Cell A1 I get Curly.


Thanks,


Gary

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Now With Index -- IF Function Does Not Work With Cell Reference

Still works for fine me, are you sure this won't work?

=IF(TRIM(A1)="<","Curly","Larry")

check the cell in D1:D700 and make sure it hasn't a hidden space, if you
still get the error try this

=ISNUMBER(MATCH("*"&CHAR(160)&"*",D1:D700,0))

if you get TRUE you have html invisible line feed, than I'd suggest you run
this macro on D1:D700

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


"Gary" wrote in message
ups.com...
Actually I made a mistake. And it was not a space issue.

A1 contains the following:

=INDEX($D$1:$D$700,R15)

and it returns the "<".

If I use an IF function that says =IF(A1="<","Curly","Larry") I
get Larry.

How can I fix this so that when I reference Cell A1 I get Curly.


Thanks,


Gary



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary
 
Posts: n/a
Default Now With Index -- IF Function Does Not Work With Cell Reference

Thanks, Peo.

Your macro worked. Now that I think of it the people I got the EXCEL
file probably generated it by copying it from a WORD file.

Gary

Peo Sjoblom wrote:
Still works for fine me, are you sure this won't work?

=IF(TRIM(A1)="<","Curly","Larry")

check the cell in D1:D700 and make sure it hasn't a hidden space, if you
still get the error try this

=ISNUMBER(MATCH("*"&CHAR(160)&"*",D1:D700,0))

if you get TRUE you have html invisible line feed, than I'd suggest you run
this macro on D1:D700

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--

Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
"It is a good thing to follow the first law of holes;
if you are in one stop digging." Lord Healey


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Reference Cell if Found in a IF function A Stevens Excel Worksheet Functions 2 December 25th 05 05:27 PM
Need Vlookup to work with formula in reference cell mikeburg Excel Discussion (Misc queries) 2 August 5th 05 12:54 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 08:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"