Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default row matching using IF


I have two sets of rows that I want to match on account number. I have
formatted them both to number if I subtract one from the other I get zero and
if I add them I get the sum but if I use the following

=IF(D2=L2,1,0)

I still get zero. Can someone explain?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default row matching using IF

Formatting only affects the look, not the underlying value.

The problem is probably the FP calculation. See if this helps

=IF((D2-L2)<0.000000001,1,0)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"scubadiver" wrote in message
...

I have two sets of rows that I want to match on account number. I have
formatted them both to number if I subtract one from the other I get zero
and
if I add them I get the sum but if I use the following

=IF(D2=L2,1,0)

I still get zero. Can someone explain?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 55
Default row matching using IF


thanks!

"Bob Phillips" wrote:

Formatting only affects the look, not the underlying value.

The problem is probably the FP calculation. See if this helps

=IF((D2-L2)<0.000000001,1,0)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"scubadiver" wrote in message
...

I have two sets of rows that I want to match on account number. I have
formatted them both to number if I subtract one from the other I get zero
and
if I add them I get the sum but if I use the following

=IF(D2=L2,1,0)

I still get zero. Can someone explain?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default row matching using IF

Perhaps there is a very small difference between those values, such
that when you subtract one from the other you have a very small value,
but if the cell is formatted to show only integer values then it will
appear as zero - try increasing the number of decimal places
displayed.

Hope this helps.

Pete

On Jul 2, 2:12*pm, scubadiver
wrote:
I have two sets of rows that I want to match on account number. I have
formatted them both to number if I subtract one from the other I get zero and
if I add them I get the sum but if I use the following

=IF(D2=L2,1,0)

I still get zero. Can someone explain?


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
Matching AlexD Excel Discussion (Misc queries) 1 April 25th 08 03:31 PM
Matching identical data using data only once in the matching proce Robert 1 Excel Discussion (Misc queries) 1 June 29th 07 04:22 PM
Help with Matching Text Fields - Then Moving the Matching Cells Side by Side [email protected] Excel Discussion (Misc queries) 2 June 11th 07 02:38 PM
Matching cj21 Excel Discussion (Misc queries) 4 January 30th 06 07:40 PM
Matching data and linking it to the matching cell yvonne a via OfficeKB.com Links and Linking in Excel 0 July 13th 05 07:30 PM


All times are GMT +1. The time now is 07:21 PM.

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

About Us

"It's about Microsoft Excel"