Overclockers Australia Forums
OCAU News - Wiki - QuickLinks - Pix - Sponsors  

Go Back   Overclockers Australia Forums > Software Topics > General Software

Notices


Sign up for a free OCAU account and this ad will go away!
Search our forums with Google:
Reply
 
Thread Tools
Old 12th July 2012, 11:53 AM   #1
digamma Thread Starter
Member
 
digamma's Avatar
 
Join Date: Mar 2002
Location: Brisbane, Southside.
Posts: 2,428
Default Excel - compare two number cells and output a text value

I'm a bit of a n00b when it comes to using excel; I can do basic arithmetic and budgets, but this has me stumped.

I'm trying to extend on a spreadsheet that shows a quote for computer systems. It lists the items with cost and then adds the cost up to give a total. On each sheet, it lists two different shops with the same or similar components. What I would like to do is compare the two shop quotes and output a tick or cross beside the item which shop is the cheapest for each item. I can do that for price, using the MIN function, but it will create an output for every item, not just the cheapest one. I was going to try and use an IF logic statement, but they don't go together, as the output from the MIN function is not true or false.

HELP!
__________________
The ultimate weakness of violence is that it is a descending spiral. Returning violence with violence only multiplies violence, adding deeper darkness to a night already devoid of stars.
digamma is offline   Reply With Quote

Join OCAU to remove this ad!
Old 12th July 2012, 12:10 PM   #2
ttv8
Member
 
ttv8's Avatar
 
Join Date: Jan 2007
Location: Brisbane
Posts: 469
Default

AFAIK you can't do ticks or crosses unless use use the wingdings/symbol font.

If statements aren't always based on true false outputs, you can do ranges and "nested" if statements to get the level of filtering you want.

Not sure if I understood your question correctly, but this might help

Let's assume A10 and C10 are your prices, in E10 try
PHP Code:
=IF(A10<C10,"Yes, XYZ is cheaper",IF(C10<A10,"ABC cheaper","")) 
ttv8 is offline   Reply With Quote
Old 12th July 2012, 3:44 PM   #3
digamma Thread Starter
Member
 
digamma's Avatar
 
Join Date: Mar 2002
Location: Brisbane, Southside.
Posts: 2,428
Default

Quote:
Originally Posted by ttv8 View Post
AFAIK you can't do ticks or crosses unless use use the wingdings/symbol font.

If statements aren't always based on true false outputs, you can do ranges and "nested" if statements to get the level of filtering you want.

Not sure if I understood your question correctly, but this might help

Let's assume A10 and C10 are your prices, in E10 try
PHP Code:
=IF(A10<C10,"Yes, XYZ is cheaper",IF(C10<A10,"ABC cheaper","")) 
Worked like a charm, thanks for that. Something I realised after inserting that formula is if the prices are the same, it outputs nothing. And if there is a price in one shop's list, but not in the other shop's list, it will result in the missing shop's name being the result.

Ah ha, worked it out. Depended on the order of the arguments in the statement. This is what I ended up with:
=IF(C6+C26=0,"",IF(C6<C26,"Shop 1",IF(C6>C26,"Shop 2",IF(C6=C26,"Same"))))
__________________
The ultimate weakness of violence is that it is a descending spiral. Returning violence with violence only multiplies violence, adding deeper darkness to a night already devoid of stars.

Last edited by digamma; 12th July 2012 at 4:56 PM.
digamma is offline   Reply With Quote
Reply

Bookmarks

Sign up for a free OCAU account and this ad will go away!

Thread Tools

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

Forum Jump


All times are GMT +10. The time now is 6:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. -
OCAU is not responsible for the content of individual messages posted by others.
Other content copyright Overclockers Australia.
OCAU is hosted by Internode!