Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default How to get a formula result to return either "+", "- ", or "="

Does anyone know of or how to craft a formula that calculates the difference between the values in two columns, and then returns to a third column either a +, -, or = depending on whether value one is more than, less than or equal to value two?

Thank you!
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Scrubber View Post
Does anyone know of or how to craft a formula that calculates the difference between the values in two columns, and then returns to a third column either a +, -, or = depending on whether value one is more than, less than or equal to value two?

Thank you!
Is this what you mean?

I'm sure there are other ways, but this is quick and dirty and it works... ;)

EDIT: You may need to switch it around a little as it compares the value in A against B and I think you want B against A.
Let me know if you need help with that....
Attached Files
File Type: zip Scrubber Sample.zip (5.7 KB, 44 views)
  #3   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Spencer101 View Post
Is this what you mean?

I'm sure there are other ways, but this is quick and dirty and it works... ;)

EDIT: You may need to switch it around a little as it compares the value in A against B and I think you want B against A.
Let me know if you need help with that....
Would you mind resending that file as .xls, not .xlsx? Sorry, I cannot open .xls format.

Thank you Spencer!

Jane
  #4   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Scrubber View Post
Would you mind resending that file as .xls, not .xlsx? Sorry, I cannot open .xls format.

Thank you Spencer!

Jane
Here you go Jane.

I've even swapped it around so it actually does what I presume you meant this time.

If it's NOW the wrong way round, just swap the < for in the formula.

Let me know!

S.
Attached Files
File Type: zip Scrubber Sample.zip (3.8 KB, 39 views)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default How to get a formula result to return either "+", "- ", or "="

Hi,

Am Wed, 18 Jul 2012 19:01:17 +0000 schrieb Scrubber:

Does anyone know of or how to craft a formula that calculates the
difference between the values in two columns, and then returns to a
third column either a +, -, or = depending on whether value one is more
than, less than or equal to value two?


try:
=IF(B1A1,"+",IF(B1=A1,"=","-"))



Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2


  #6   Report Post  
Junior Member
 
Posts: 3
Default

Quote:
Originally Posted by Spencer101 View Post
Here you go Jane.

I've even swapped it around so it actually does what I presume you meant this time.

If it's NOW the wrong way round, just swap the < for in the formula.

Let me know!

S.

EXACTLY! Thank you so very much!
  #7   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Scrubber View Post
EXACTLY! Thank you so very much!
Pleasure was all mine. Glad I could help.

:)
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
If changed array formula reduce ""\""\""\ - signs to #Missing, will it make ... Maria J-son[_2_] Excel Programming 2 March 5th 06 12:20 PM


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