#1   Report Post  
jaytee
 
Posts: n/a
Default need formula

I need a formula to do the following

("Cell contents"-60)*2
("Cell contents"-80)*6
("Cell contents"-90)*2

Cell contents in each case is same cell so only want line 2 to apply only if
contents greater than 80 and line 3 if contents only greater than 90 other
wise answer could be a negative amount

anyone understand what I mean and got an answer

thanks if you have
  #2   Report Post  
Mangesh Yadav
 
Posts: n/a
Default

if A1 is the cell content, then use:
=IF(A180,(A1-80)*6,IF(A190,(A1-90)*2,(A1-60)*2))

- Mangesh


"jaytee" (nospam) wrote in message
...
I need a formula to do the following

("Cell contents"-60)*2
("Cell contents"-80)*6
("Cell contents"-90)*2

Cell contents in each case is same cell so only want line 2 to apply only

if
contents greater than 80 and line 3 if contents only greater than 90 other
wise answer could be a negative amount

anyone understand what I mean and got an answer

thanks if you have



  #3   Report Post  
paul
 
Posts: n/a
Default

try this
=IF(C9<80,(C9-60)*2,IF(AND(C9=80,C9<=90),(C9-80)*6,IF(C990,(C9-90)*2)))
this assumes your middle range includes 80 and 90
--
paul
remove nospam for email addy!



"jaytee" wrote:

I need a formula to do the following

("Cell contents"-60)*2
("Cell contents"-80)*6
("Cell contents"-90)*2

Cell contents in each case is same cell so only want line 2 to apply only if
contents greater than 80 and line 3 if contents only greater than 90 other
wise answer could be a negative amount

anyone understand what I mean and got an answer

thanks if you have

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
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
put formula results into a different cell if it is empty PutFormula Excel Worksheet Functions 2 February 11th 05 03:31 AM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"