ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   if GI i want A seleceted if IG than i want C selected (https://www.excelbanter.com/excel-programming/319840-if-g-i-i-want-seleceted-if-i-g-than-i-want-c-selected.html)

sciacqua1

if GI i want A seleceted if IG than i want C selected
 
How do I do a formula to select a certain cell. If GH I want the program to
select cell A. If HG than I want the program to select cell C. How do I
program this. What tool do I use.

thanks
Mike

Bob Phillips[_6_]

if GI i want A seleceted if IG than i want C selected
 
=IF(G1H1,A1,IF(G1<H1,C1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sciacqua1" wrote in message
...
How do I do a formula to select a certain cell. If GH I want the program

to
select cell A. If HG than I want the program to select cell C. How do I
program this. What tool do I use.

thanks
Mike




Frank Kabel

if GI i want A seleceted if IG than i want C selected
 
Hi
with activesheet
if .range("H1").value<.range("G1").value then
msgbox .range("a1").value
elseif .range("H1").value.range("G1").value then
msgbox .range("c1").value
else 'equal
msgbox "not defined"
end if
end with

--
Regards
Frank Kabel
Frankfurt, Germany

sciacqua1 wrote:
How do I do a formula to select a certain cell. If GH I want the
program to select cell A. If HG than I want the program to select
cell C. How do I program this. What tool do I use.

thanks
Mike




sciacqua1

if GI i want A seleceted if IG than i want C selected
 


"Bob Phillips" wrote:

=IF(G1H1,A1,IF(G1<H1,C1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sciacqua1" wrote in message
...
How do I do a formula to select a certain cell. If GH I want the program

to
select cell A. If HG than I want the program to select cell C. How do I
program this. What tool do I use.

thanks
Mike



I;ll give it a try and see how it works.


thanks
mike

sciacqua1

if GI i want A seleceted if IG than i want C selected
 


"Bob Phillips" wrote:

=IF(G1H1,A1,IF(G1<H1,C1,""))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"sciacqua1" wrote in message
...
How do I do a formula to select a certain cell. If GH I want the program

to
select cell A. If HG than I want the program to select cell C. How do I
program this. What tool do I use.

thanks
Mike



Thanks Bob, That was what I was looking for. Gotta keep track of all the bowl games and point spread winners.


thanks
Mike


All times are GMT +1. The time now is 08:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com