Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pat Pat is offline
external usenet poster
 
Posts: 210
Default need help with excel formula

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default need help with excel formula

You could use the MAX function. It will return the largest value.

=MAX(A1,A7)

You could also use an IF function.

=IF(A7A1,A7,A1)

HTH,
Elkar

"Pat" wrote:

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pat Pat is offline
external usenet poster
 
Posts: 210
Default need help with excel formula

Thank you! One more quick question: I need to hold one of the cells (A1)
constant in the formula so I can copy it throughout the worksheet. I know
you can use a "#" sign somewhere within the formula to make this happen.
Where do I put it?

"Elkar" wrote:

You could use the MAX function. It will return the largest value.

=MAX(A1,A7)

You could also use an IF function.

=IF(A7A1,A7,A1)

HTH,
Elkar

"Pat" wrote:

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 618
Default need help with excel formula

"Pat" wrote in message
...
I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?


You haven't said what you want if A1=A7 but I'll assume that you're happy
with the output being the common input value.

=IF(A7A1,A7,A1)
or
=MAX(A1,A7)
--
David Biddulph




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default need help with excel formula

Actually, it's the $ symbol.

$A$1 will cause A1 to remain unchanged when copied. $A1 would cause only
the column portion of A1 to remain unchanged. And likewise, A$1 would cause
only the row portion of A1 to remain unchanged.

HTH,
Elkar


"Pat" wrote:

Thank you! One more quick question: I need to hold one of the cells (A1)
constant in the formula so I can copy it throughout the worksheet. I know
you can use a "#" sign somewhere within the formula to make this happen.
Where do I put it?

"Elkar" wrote:

You could use the MAX function. It will return the largest value.

=MAX(A1,A7)

You could also use an IF function.

=IF(A7A1,A7,A1)

HTH,
Elkar

"Pat" wrote:

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 174
Default need help with excel formula

It's a $ sign. Try

=MAX($A$1,A7)

"Pat" wrote:

Thank you! One more quick question: I need to hold one of the cells (A1)
constant in the formula so I can copy it throughout the worksheet. I know
you can use a "#" sign somewhere within the formula to make this happen.
Where do I put it?

"Elkar" wrote:

You could use the MAX function. It will return the largest value.

=MAX(A1,A7)

You could also use an IF function.

=IF(A7A1,A7,A1)

HTH,
Elkar

"Pat" wrote:

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you help?

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,339
Default need help with excel formula

$A$1 will keep the reference to A1 as a "constant" (or "absolute" to use the
correct teminology) address.

HTH

"Pat" wrote:

Thank you! One more quick question: I need to hold one of the cells (A1)
constant in the formula so I can copy it throughout the worksheet. I know
you can use a "#" sign somewhere within the formula to make this happen.
Where do I put it?

"Elkar" wrote:

You could use the MAX function. It will return the largest value.

=MAX(A1,A7)

You could also use an IF function.

=IF(A7A1,A7,A1)

HTH,
Elkar

"Pat" wrote:

I need a formula that determines which value to accept: I want:

If A7A1, then A7; but if A7<A1, then A1

I've been fooling with it for hours. Can you 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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Excel Formula Issue [email protected] Excel Discussion (Misc queries) 2 August 16th 06 11:44 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
converting formula from lotus.123 to excel zaharah Excel Worksheet Functions 2 July 27th 05 03:04 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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