#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default If function

I am stuck, I need a formular that will give me a telephone no, depending on
a type
1-4
Colum A = Ref No
B = Old Tel No
C = New Tel No
D = Type

If Type 1 & 4 = Keep existing no
If Type 2 & 3 = Will use New Tel No

Can anyone help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,173
Default If function

Sean

=IF(OR(D1=1,D1=4),B2,C2)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sean" wrote in message
...
I am stuck, I need a formular that will give me a telephone no, depending
on
a type
1-4
Colum A = Ref No
B = Old Tel No
C = New Tel No
D = Type

If Type 1 & 4 = Keep existing no
If Type 2 & 3 = Will use New Tel No

Can anyone help


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default If function

That was quick - thanks

"Nick Hodge" wrote:

Sean

=IF(OR(D1=1,D1=4),B2,C2)

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
www.nickhodge.co.uk


"Sean" wrote in message
...
I am stuck, I need a formular that will give me a telephone no, depending
on
a type
1-4
Colum A = Ref No
B = Old Tel No
C = New Tel No
D = Type

If Type 1 & 4 = Keep existing no
If Type 2 & 3 = Will use New Tel No

Can anyone help


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default If function

Nel post
*Sean* ha scritto:

I am stuck, I need a formular that will give me a telephone no,
depending on a type
1-4
Colum A = Ref No
B = Old Tel No
C = New Tel No
D = Type

If Type 1 & 4 = Keep existing no
If Type 2 & 3 = Will use New Tel No

Can anyone help


Hi Sean,

In E2 type this formula:

=IF(OR(D2=1,D2=4),B2,C2)

then you can drag down the rows.


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default If function

That was quick - thanks

"Franz Verga" wrote:

Nel post
*Sean* ha scritto:

I am stuck, I need a formular that will give me a telephone no,
depending on a type
1-4
Colum A = Ref No
B = Old Tel No
C = New Tel No
D = Type

If Type 1 & 4 = Keep existing no
If Type 2 & 3 = Will use New Tel No

Can anyone help


Hi Sean,

In E2 type this formula:

=IF(OR(D2=1,D2=4),B2,C2)

then you can drag down the rows.


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default If function

Nel post
*Sean* ha scritto:

That was quick - thanks


This is also better:

=IF(OR(D2=1,D2=4),B2,IF(OR(D2=2,D2=3),C2,"Insert type"))

in this way if you don't insert type in column D you will have the warning
in column E instead of telephone number.


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Need some comments on my Utility_Move class module. jchen Excel Worksheet Functions 0 August 21st 06 07:05 PM
Creating a Custom Excel Function to Calculate Gini Coefficients [email protected] Excel Worksheet Functions 3 February 21st 06 10:15 PM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


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