#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default If question

I have imported into Excel our accounting spreadsheet. by way of example the
accounting code for Contract labor is 601601 and it is located in the
imported spreadsheet at A39. I want to do a logical If question and I get a
fals reading.
My formula is:
=If([accountingfile.xlsx]sheet1!a39=601601,Q39,false)

I get the false readin even if a39 = 601601, Why? The only thing I come up
with is the formatting of the a39 cell in my imported file. I have tried to
typoe in a39="601601 or a39= 601601 and a39='6016 and a39= '601601 I
get the same false.

I tried in my worksheet to use a differet cell to import the A39 and then
insert that cell into the if formula and I still get false but you can see
the number 601601 in the cell right above my if formula.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default If question

Probably your [accountingfile.xlsx]sheet1!a39 isn't a number, but is text.
Try =ISNUMBER([accountingfile.xlsx]sheet1!a39) and
=ISTEXT([accountingfile.xlsx]sheet1!a39)

If it is text, you may need to go into that cell and see what you've got in
there. There may be spaces, or other non-printing characters such as
non-breaking spaces.
--
David Biddulph


"jackd" wrote in message
...
I have imported into Excel our accounting spreadsheet. by way of example
the
accounting code for Contract labor is 601601 and it is located in the
imported spreadsheet at A39. I want to do a logical If question and I get
a
fals reading.
My formula is:
=If([accountingfile.xlsx]sheet1!a39=601601,Q39,false)

I get the false readin even if a39 = 601601, Why? The only thing I come
up
with is the formatting of the a39 cell in my imported file. I have tried
to
typoe in a39="601601 or a39= 601601 and a39='6016 and a39= '601601
I
get the same false.

I tried in my worksheet to use a differet cell to import the A39 and then
insert that cell into the if formula and I still get false but you can see
the number 601601 in the cell right above my if formula.



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
SUM IF QUESTION PLEASE HELP llong3316 Excel Worksheet Functions 0 May 14th 08 02:52 PM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
Another Sum Question Erin Shellman Excel Discussion (Misc queries) 14 June 20th 05 02:52 PM


All times are GMT +1. The time now is 11:50 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"