#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need help

Please help me with creating formula:

Cell A1 = 1 value (example 5000)
Cell A2 has only 3 values: 40, 60, 80
Forumla in Cell A3:

If A2 = 40 then A1 - 140

A1=5000
A2=40
A3=4860

If A2 = 60 then A1 - 180

A1=5000
A2=60
A3=4820

If A2 = 80 then A1 - 220

A1=5000
A2=60
A3=4780

Please help me creating forumula in cell A3, but important is cell A2
because
it has only 3 values 40,60,80



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Need help

=A1-(A2=40)*140-(A2=60)*180-(A2=80)*220

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Excel" wrote in message
...
Please help me with creating formula:

Cell A1 = 1 value (example 5000)
Cell A2 has only 3 values: 40, 60, 80
Forumla in Cell A3:

If A2 = 40 then A1 - 140

A1=5000
A2=40
A3=4860

If A2 = 60 then A1 - 180

A1=5000
A2=60
A3=4820

If A2 = 80 then A1 - 220

A1=5000
A2=60
A3=4780

Please help me creating forumula in cell A3, but important is cell A2
because
it has only 3 values 40,60,80





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Need help

=A1-(2*A2+60)
--
Gary''s Student - gsnu2007i
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



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

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"