Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Pepper233
 
Posts: n/a
Default IF Function Help, Please:)


I need the IF function to add up two cells and if the sum is greater than or
equal to 80, then the cell needs to read "80," if the sum is less than 80 I
just want it to show whatever number it calculates (79 and below).

This is for a timesheet with overtime.

Thank you for your help!!
  #2   Report Post  
Wolfgang
 
Posts: n/a
Default

Use: =IF(Cell1+Cell2<=80,Cell1+Cell2,80)

The syntax: =IF(some result equals or is less than 80, TRUE: the result,
FALSE: show 80)

"Pepper233" wrote:


I need the IF function to add up two cells and if the sum is greater than or
equal to 80, then the cell needs to read "80," if the sum is less than 80 I
just want it to show whatever number it calculates (79 and below).

This is for a timesheet with overtime.

Thank you for your help!!

  #3   Report Post  
Max
 
Posts: n/a
Default

Try something like: =MIN(SUM(A1:B1),80)
where the 2 cells are A1 and B1
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"Pepper233" wrote in message
...

I need the IF function to add up two cells and if the sum is greater than

or
equal to 80, then the cell needs to read "80," if the sum is less than 80

I
just want it to show whatever number it calculates (79 and below).

This is for a timesheet with overtime.

Thank you for your help!!



  #4   Report Post  
Pepper233
 
Posts: n/a
Default

That worked; however, the results are negative numbers...?

"Wolfgang" wrote:

Use: =IF(Cell1+Cell2<=80,Cell1+Cell2,80)

The syntax: =IF(some result equals or is less than 80, TRUE: the result,
FALSE: show 80)

"Pepper233" wrote:


I need the IF function to add up two cells and if the sum is greater than or
equal to 80, then the cell needs to read "80," if the sum is less than 80 I
just want it to show whatever number it calculates (79 and below).

This is for a timesheet with overtime.

Thank you for your help!!

  #5   Report Post  
Pepper233
 
Posts: n/a
Default

Never mind about the negative number thing--figured it out :) Thanks,
Wolfgang!

"Wolfgang" wrote:

Use: =IF(Cell1+Cell2<=80,Cell1+Cell2,80)

The syntax: =IF(some result equals or is less than 80, TRUE: the result,
FALSE: show 80)

"Pepper233" wrote:


I need the IF function to add up two cells and if the sum is greater than or
equal to 80, then the cell needs to read "80," if the sum is less than 80 I
just want it to show whatever number it calculates (79 and below).

This is for a timesheet with overtime.

Thank you for your 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
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
Trim function doesn't clean out ASCII Code 160 (Space) Ronald Dodge Excel Worksheet Functions 6 January 27th 05 03:48 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


All times are GMT +1. The time now is 11:22 AM.

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"