Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-16-2014, 05:40 AM
clara1703 clara1703 is offline If formatting Windows 7 32bit If formatting Office 2010 32bit
Novice
If formatting
 
Join Date: Sep 2014
Posts: 2
clara1703 is on a distinguished road
Default If formatting

Hi, first time I have used this forum so hope this makes sense.


I have a spreadsheet that I want to be able to give me 3 different answers to.

column A = 17
column B = 20
Column C, I want this to give me a 0 if column A & B are the same, a 1 if A is greater than B and 2 if A is less than B. I can do the greater than or less than but can't work out how to input an answer if they are the same, for example they both say 20 = 0

Any help would be great.
Reply With Quote
  #2  
Old 09-16-2014, 07:27 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline If formatting Windows 7 64bit If formatting Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,919
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

=if(a1=b1,0,if(a1>b1,1,2))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 09-17-2014, 12:58 AM
clara1703 clara1703 is offline If formatting Windows 7 32bit If formatting Office 2010 32bit
Novice
If formatting
 
Join Date: Sep 2014
Posts: 2
clara1703 is on a distinguished road
Smile If formatting - Many Thanks

Thank you so much for your help, it does exactly what I want it to do.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace, Formatting, Formatting Formula kjxavier Word 1 07-04-2014 09:11 AM
If formatting Conditional formatting that ignores other formatting rules info_guy2 Excel 1 07-03-2014 10:07 AM
Formatting contents after Tab of continuous lines or formatting specific area of word pawii Word 1 05-12-2014 05:24 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft