#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF Formula

I am trying to compare two cells to eachother and populate a third cell with
the number that is the GREATER of the two. (IF f26 is greater than G34,
populate m22 with value in f26; BUT if g34 is greater than f26, populate m22
with value in g34). Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 23
Default IF Formula

On Jan 13, 10:17*am, CrazyConfused
wrote:
I am trying to compare two cells to eachother and populate a third cell with
the number that is the GREATER of the two. *(IF f26 is greater than G34,
populate m22 with value in f26; BUT if g34 is greater than f26, populate m22
with value in g34). *Any suggestions?


Assuming you compare column F & G, then put the function in column
M :

=IF(F1G1,F1,G1)
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default cmd MAX shall help

Hi,
if there are numbers in the cells, you can try following formula in M22:
=MAX(F26;G34)
If there is mixed content (text or numbers), following formula will help (as proposed similar shortly):
=IF(F26G34;F26;G34)
Regards,
Karsten



CrazyConfused wrote:

IF Formula
13-Jan-10

I am trying to compare two cells to eachother and populate a third cell with
the number that is the GREATER of the two. (IF f26 is greater than G34,
populate m22 with value in f26; BUT if g34 is greater than f26, populate m22
with value in g34). Any suggestions?

Previous Posts In This Thread:


Submitted via EggHeadCafe - Software Developer Portal of Choice
Parsing the Querystring with Javascript
http://www.eggheadcafe.com/tutorials...ystring-w.aspx
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



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