39,476 Members 1,490,579 Posts
BRISKODA - The Skoda Forums  

Excel problem

This is a discussion on Excel problem within the The Tech Shed forums, part of the Members Area category; I have a silly problem in an Excel (2007) spreadsheet. Not a complicated one by any means. This is the ...


Go Back   BRISKODA - The Skoda Forums > Members Area > The Tech Shed

Pronounced "bris-skoda", a brisk skoda.

Register Gallery FAQ Members List Calendar Mark Forums Read
Old 19-09-2008, 11:57   #1
Briskodian
 
matchmaker's Avatar
 
Join Date: Aug 2004
Location: Stirling
Posts: 2,794

Members Car: Black Octavia vRS
Thanks: 24
Thanked 20 Times in 18 Posts
Excel problem

I have a silly problem in an Excel (2007) spreadsheet. Not a complicated one by any means.

This is the formula that doesn't work.

=IF(Dumyat!D33=I33,1,0)

"Dumyat" is a sheet in a workbook. Cell D33 on the worksheet has the value 13. Cell I33 has the value 13. The formula should return the value 1. It doesn't. It returns a 0

If I change the formula to

=IF(Dumyat!D33=I33,0,1)

it produces the correct result.

I know it's a Friday, but I am getting a headache. What am I doing wrong?
__________________
Alan

"Darth" - Black Magic Octavia VRS with Forge DV, BMC CDA induction kit, Milltek cat, Supersprint exhaust, Xenons, ESP, cruise, parking sensors and Kumho 225/45/17 tyres Been to Star sufficient bhp & ample lb/ft All time low - 7.8 mpg
matchmaker is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote

Find out about Freedom to remove these ads.

Old 19-09-2008, 12:05   #2
ASZ Eternal
 
ap0gee's Avatar
 
Join Date: Aug 2004
Location: Leafy Chesh-shire
Posts: 6,911

Members Car: Black Magic Fabia vRS
Thanks: 360
Thanked 375 Times in 325 Posts
Re: Excel problem

Needs to be:

=IF(Dumyat!D33=Dumyat!I33,1,0)

HTH
__________________
ap0gee is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
The Following User Says Thank You to ap0gee For This Useful Post:
matchmaker (19-09-2008)
Old 19-09-2008, 12:19   #3
Briskodian
 
matchmaker's Avatar
 
Join Date: Aug 2004
Location: Stirling
Posts: 2,794

Members Car: Black Octavia vRS
Thanks: 24
Thanked 20 Times in 18 Posts
Re: Excel problem

Quote:
Originally Posted by ap0gee View Post
Needs to be:

=IF(Dumyat!D33=Dumyat!I33,1,0)

HTH

__________________
Alan

"Darth" - Black Magic Octavia VRS with Forge DV, BMC CDA induction kit, Milltek cat, Supersprint exhaust, Xenons, ESP, cruise, parking sensors and Kumho 225/45/17 tyres Been to Star sufficient bhp & ample lb/ft All time low - 7.8 mpg
matchmaker is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 12:24   #4
ASZ Eternal
 
ap0gee's Avatar
 
Join Date: Aug 2004
Location: Leafy Chesh-shire
Posts: 6,911

Members Car: Black Magic Fabia vRS
Thanks: 360
Thanked 375 Times in 325 Posts
Re: Excel problem

Quote:
Originally Posted by matchmaker View Post
Welcome! (Surprised myself with that one TBH )
__________________
ap0gee is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 13:05   #5
Briskodian
 
KenONeill's Avatar
 
Join Date: May 2006
Location: Normally in Scotland!
Posts: 11,250

Members Car: Octavia TDi110
Thanks: 65
Thanked 562 Times in 550 Posts
Re: Excel problem

Which seems do suggest that =if(Fred.cell = Joe.cell,true,false) should return false if the cells contain the same value?
KenONeill is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 14:54   #6
Briskodian
 
Interphase's Avatar
 
Join Date: Aug 2007
Location: Leicestershire
Posts: 363

Members Car: 2002 Octavia RS
Thanks: 14
Thanked 32 Times in 28 Posts
Re: Excel problem

I thought the first comma represents THEN and the second comma ELSE, which would return TRUE for matching values of Fred and Joe?
Interphase is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 15:13   #7
ASZ Eternal
 
ap0gee's Avatar
 
Join Date: Aug 2004
Location: Leafy Chesh-shire
Posts: 6,911

Members Car: Black Magic Fabia vRS
Thanks: 360
Thanked 375 Times in 325 Posts
Re: Excel problem

You're both missing that the original query said "if D33 on Dumyat worksheet = I33 on current worksheet, then '1' else '0'". So of course it's going to seem ar$e-about-face, because you're comparing cells on two different worksheets (i.e. unless cell I33 on the current worksheet happens to show the same data as I33 on Dumyat, you're going to get the FALSE result)...
__________________
ap0gee is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 15:21   #8
Briskodian
 
KenONeill's Avatar
 
Join Date: May 2006
Location: Normally in Scotland!
Posts: 11,250

Members Car: Octavia TDi110
Thanks: 65
Thanked 562 Times in 550 Posts
Re: Excel problem

Huh!? I thought that was the point; I33 on current worksheet did contain 13, and the IF was returning false. If I read the question wrong, I plead Friday!!
KenONeill is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Old 19-09-2008, 15:27   #9
Briskodian
 
matchmaker's Avatar
 
Join Date: Aug 2004
Location: Stirling
Posts: 2,794

Members Car: Black Octavia vRS
Thanks: 24
Thanked 20 Times in 18 Posts
Re: Excel problem

Quote:
Originally Posted by KenONeill View Post
Huh!? I thought that was the point; I33 on current worksheet did contain 13, and the IF was returning false. If I read the question wrong, I plead Friday!!
I blame it on Friday too........I wanted to compare cells on the same worksheet

That was the simple part in the spreadsheet- it is getting complicated and I'm now having loving memories of Access queries
__________________
Alan

"Darth" - Black Magic Octavia VRS with Forge DV, BMC CDA induction kit, Milltek cat, Supersprint exhaust, Xenons, ESP, cruise, parking sensors and Kumho 225/45/17 tyres Been to Star sufficient bhp & ample lb/ft All time low - 7.8 mpg
matchmaker is offline  
Digg this Post!Add Post to del.icio.us
Reply With Quote
Reply

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Excel Question youngsyd The Tech Shed 17 20-02-2008 16:23
Problem open excel shortcuts scowlsandgrowls The Tech Shed 0 21-08-2006 15:38
Excel formula ..help Octygone The Tech Shed 21 27-02-2006 11:27
Any MS Excel Experts -- H E L P ! ! skodaw The Tech Shed 6 22-01-2005 16:53
Excel question Jon172 Off Topic and Chit Chat 13 26-03-2004 18:02


All times are GMT +1. The time now is 18:39.


Disclaimer: This is not an official SKODA site and is not affiliated to SKODA in any way. Visit the Official SKODA Website.
Views and opinions are given by the poster and do not reflect the views of BRISKODA.net nor SKODA.
All trademarks and copyrights remain property of their respective owners.

PLEASE NOTE - PERSONAL ABUSE, ABUSE AGAINST THIS OR ANY OTHER WEBSITE OR ANY COMPANY WILL NOT BE TOLERATED.
OFFENDERS WILL BE MODERATED OR EVEN BANNED
.

BRISKODA.net is operated by Summit 360 Ltd
Site Design and vBulletin Theme by Alex Pinner (apinner)

Website © 2002-2008 BRISKODA ltd & SUMMIT360 ltd E. & O.E.

Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105