Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default function to return two different results

Hi I want a cell to return two different results depending on what is
entered. For example I want a function in column C (Outstanding) that will
either return the value of Col A (PO value) or it will return the difference
when a value is entered in col B ( Inv Value)

PO Value Invoice Value Outstanding

£1,417.05 1441.26 -£24.21
£635.21 319.37 £315.84

Any help here would be appreciated. Thanks




  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default function to return two different results

Assuming you're working with columns A, B & C:

=IF(B1=0,A1,A1-B1)
--
Kevin Backmann


"Haz" wrote:

Hi I want a cell to return two different results depending on what is
entered. For example I want a function in column C (Outstanding) that will
either return the value of Col A (PO value) or it will return the difference
when a value is entered in col B ( Inv Value)

PO Value Invoice Value Outstanding

£1,417.05 1441.26 -£24.21
£635.21 319.37 £315.84

Any help here would be appreciated. Thanks




  #3   Report Post  
Posted to microsoft.public.excel.misc
Haz Haz is offline
external usenet poster
 
Posts: 46
Default function to return two different results

Thank you it worked, Appreciated.

"Kevin B" wrote:

Assuming you're working with columns A, B & C:

=IF(B1=0,A1,A1-B1)
--
Kevin Backmann


"Haz" wrote:

Hi I want a cell to return two different results depending on what is
entered. For example I want a function in column C (Outstanding) that will
either return the value of Col A (PO value) or it will return the difference
when a value is entered in col B ( Inv Value)

PO Value Invoice Value Outstanding

£1,417.05 1441.26 -£24.21
£635.21 319.37 £315.84

Any help here would be appreciated. Thanks




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
Compare and Return Results Electronic Lady Excel Discussion (Misc queries) 10 March 28th 07 07:28 PM
Vlookup to return results of If statement ruthhicks999 Excel Worksheet Functions 0 February 27th 07 11:25 AM
how to return multiple results in vlookup? Landa Excel Worksheet Functions 3 July 20th 06 08:27 AM
Return last 6 results formula [email protected] Excel Worksheet Functions 2 March 19th 06 07:04 PM
in EXCELL, the function does not return results IRINA Excel Worksheet Functions 2 January 20th 06 05:04 PM


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