Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default New Formular Needed



I have been using some old software to provide what i need but want to move
to Microsoft.

The formular that has been used in the old software (Q&A Version 3) is:

IF Field 2< Field 1 then Field 3 = Field 1 - Field 2 + Field 3 ELSEIF Field
2 Field 1 then Field 3 = Field 3 - Field 2 + Field 3

Can anyone work out a conversion that will work?

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/04/2004


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default New Formular Needed

Hi
do you need a worksheet function or a VBA solution. For
the former one this could be complicated as you want the
result in the same cell as one of he parameter resides


-----Original Message-----


I have been using some old software to provide what i

need but want to move
to Microsoft.

The formular that has been used in the old software (Q&A

Version 3) is:

IF Field 2< Field 1 then Field 3 = Field 1 - Field 2 +

Field 3 ELSEIF Field
2 Field 1 then Field 3 = Field 3 - Field 2 + Field 3

Can anyone work out a conversion that will work?

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date:

24/04/2004


.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default New Formular Needed

Hi

At first, you have to enter your formula into another column - otherwise you
get a circular reference. And when you enter your formula into some cell
with a value in it, then you overwrite this value - Excel can't get any info
about old value anymore. So the formula will be like this:
Field4=IF(Field2<Field1,Field1-Field2+Field3,2*Field3-Field2)
i.e. something like this in cell D2
=IF(B2<A2,A2-B2+C2,2*C2-B2)

--
Arvi Laanemets
(When sending e-mail, use address arvil<Attarkon.ee)



"NSF" wrote in message
...


I have been using some old software to provide what i need but want to

move
to Microsoft.

The formular that has been used in the old software (Q&A Version 3) is:

IF Field 2< Field 1 then Field 3 = Field 1 - Field 2 + Field 3 ELSEIF

Field
2 Field 1 then Field 3 = Field 3 - Field 2 + Field 3

Can anyone work out a conversion that will work?

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/04/2004




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default New Formular Needed

This will not work as you are trying to set Field3 to a value that includes
field3, this will give a circular reference.

If you ahd another field/cell, you could use

=IF(Field2<Field1, Field1-Field2+Field3,IF(Field2Field1,
Field3-Field2+Field3)

Are you sure about that last condition? Field 3 - Field 2 + Field 3 is the
same as -Field2.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"NSF" wrote in message
...


I have been using some old software to provide what i need but want to

move
to Microsoft.

The formular that has been used in the old software (Q&A Version 3) is:

IF Field 2< Field 1 then Field 3 = Field 1 - Field 2 + Field 3 ELSEIF

Field
2 Field 1 then Field 3 = Field 3 - Field 2 + Field 3

Can anyone work out a conversion that will work?

Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.668 / Virus Database: 430 - Release Date: 24/04/2004




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default New Formular Needed

I need a workbook function and there sits the problem

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
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
formular Rolf Excel Worksheet Functions 0 February 19th 10 01:50 AM
Formular help ? coltheplumb Excel Discussion (Misc queries) 8 September 11th 09 04:42 PM
Formular Kanmi Excel Worksheet Functions 0 August 27th 09 09:29 PM
formular readmynote student New Users to Excel 2 August 19th 08 07:01 AM
formular Gee Setting up and Configuration of Excel 0 April 15th 08 03:10 PM


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