Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pboost1
 
Posts: n/a
Default IF and conditional sum, one result


Hello everybody. I am trying to do something with a spreadsheet and not
sure how to work the formula. I have seven columns and seven rows. The
column starts at F and the rows start and 1. The formula I have is
this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))


This is in cell K6. I would like this formula to also be able to look
at cells L6 and L7, and if L7 is larger than L6, subtract 1 from result
of the formula in K6. Can something like this be done? Thank you in
advance for any help that can be given.


--
pboost1
------------------------------------------------------------------------
pboost1's Profile: http://www.excelforum.com/member.php...o&userid=11895
View this thread: http://www.excelforum.com/showthread...hreadid=398300

  #2   Report Post  
Excel_Geek
 
Posts: n/a
Default


Is this it?

=IF(L7L6,(IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5))))))-1,IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5))))))


--
Excel_Geek


------------------------------------------------------------------------
Excel_Geek's Profile: http://www.excelforum.com/member.php...o&userid=26423
View this thread: http://www.excelforum.com/showthread...hreadid=398300

  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

If I understand what you want try this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))-(L7L6)

Biff

"pboost1" wrote in
message ...

Hello everybody. I am trying to do something with a spreadsheet and not
sure how to work the formula. I have seven columns and seven rows. The
column starts at F and the rows start and 1. The formula I have is
this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))


This is in cell K6. I would like this formula to also be able to look
at cells L6 and L7, and if L7 is larger than L6, subtract 1 from result
of the formula in K6. Can something like this be done? Thank you in
advance for any help that can be given.


--
pboost1
------------------------------------------------------------------------
pboost1's Profile:
http://www.excelforum.com/member.php...o&userid=11895
View this thread: http://www.excelforum.com/showthread...hreadid=398300



  #4   Report Post  
rahrah3a
 
Posts: n/a
Default

try this. I nested your formula within an if statement.

if (L7L6,your formula -1, your formula)

=IF(L7L6,IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))-1,IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5))))))

"pboost1" wrote:


Hello everybody. I am trying to do something with a spreadsheet and not
sure how to work the formula. I have seven columns and seven rows. The
column starts at F and the rows start and 1. The formula I have is
this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))


This is in cell K6. I would like this formula to also be able to look
at cells L6 and L7, and if L7 is larger than L6, subtract 1 from result
of the formula in K6. Can something like this be done? Thank you in
advance for any help that can be given.


--
pboost1
------------------------------------------------------------------------
pboost1's Profile: http://www.excelforum.com/member.php...o&userid=11895
View this thread: http://www.excelforum.com/showthread...hreadid=398300


  #5   Report Post  
Biff
 
Posts: n/a
Default

Hi!

If I'm following you correctly then you can shorten your formula to:

=IF(SUM(K1:K5)<10,SUM(K1:K5),SUM(K1:K5)-LOOKUP(SUM(K1:K5),{10,10;20,20;30,30}))-(L7L6)

Biff

"Biff" wrote in message
...
Hi!

If I understand what you want try this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))-(L7L6)

Biff

"pboost1" wrote in
message ...

Hello everybody. I am trying to do something with a spreadsheet and not
sure how to work the formula. I have seven columns and seven rows. The
column starts at F and the rows start and 1. The formula I have is
this:

=IF(SUM(K1:K5)=30,SUM(K1:K5)-30,IF(SUM(K1:K5)=20,SUM(K1:K5)-20,IF(SUM(K1:K5)=10,SUM(K1:K5)-10,IF(SUM(K1:K5)<10,SUM(K1:K5)))))


This is in cell K6. I would like this formula to also be able to look
at cells L6 and L7, and if L7 is larger than L6, subtract 1 from result
of the formula in K6. Can something like this be done? Thank you in
advance for any help that can be given.


--
pboost1
------------------------------------------------------------------------
pboost1's Profile:
http://www.excelforum.com/member.php...o&userid=11895
View this thread:
http://www.excelforum.com/showthread...hreadid=398300







  #6   Report Post  
pboost1
 
Posts: n/a
Default


I appreciate the help, thanks.


--
pboost1
------------------------------------------------------------------------
pboost1's Profile: http://www.excelforum.com/member.php...o&userid=11895
View this thread: http://www.excelforum.com/showthread...hreadid=398300

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
VLOOKUP & Conditional Formating Help. Excel'ed Failures Excel Discussion (Misc queries) 6 August 16th 05 04:46 PM
how can i use colors in conditional formulas if i want the result. kshaheen Excel Discussion (Misc queries) 1 March 22nd 05 10:09 AM
How to preserve conditional formatting on a web query table result Simon L Excel Discussion (Misc queries) 9 February 26th 05 01:19 AM
Conditional Formatting using result of Cell Formulas Dave Peterson Excel Discussion (Misc queries) 0 January 26th 05 02:17 AM
Conditional Formating when result is text Lary Excel Worksheet Functions 1 December 16th 04 02:13 AM


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