#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Strugling IF Formula


HI All,

I am trying to write an OR IF formula. Maybe there is an easier way.

This is what I am trying to write
=IF(a2=D1,1,0),orif(B2=D1,2,0),orif(C2=D1,1,0) - The formula would be
in D2

What the formula needs to say is if the value in A2 equals D1 return
value 1, or if not then if the value in B2 equals D1 return value 2, or
if not then if the value in C2 equals D1 return value 1.

Please help maybe I am trying the wrong formular?

thanks
Brento


--
Brento
------------------------------------------------------------------------
Brento's Profile: http://www.excelforum.com/member.php...o&userid=25213
View this thread: http://www.excelforum.com/showthread...hreadid=561717

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Strugling IF Formula


Try this

=IF(B2=D1,2,IF(OR(A2=D1,C2=D1)<"",1,""))


--
VBA Noob
------------------------------------------------------------------------
VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833
View this thread: http://www.excelforum.com/showthread...hreadid=561717

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Strugling IF Formula

Hi Brento,

Try:
=IF(A2=D1,1,IF(B2=D1,2,IF(C2=D1,1,0)))

--
macropod
[MVP - Microsoft Word]


"Brento" wrote in
message ...

HI All,

I am trying to write an OR IF formula. Maybe there is an easier way.

This is what I am trying to write
=IF(a2=D1,1,0),orif(B2=D1,2,0),orif(C2=D1,1,0) - The formula would be
in D2

What the formula needs to say is if the value in A2 equals D1 return
value 1, or if not then if the value in B2 equals D1 return value 2, or
if not then if the value in C2 equals D1 return value 1.

Please help maybe I am trying the wrong formular?

thanks
Brento


--
Brento
------------------------------------------------------------------------
Brento's Profile:

http://www.excelforum.com/member.php...o&userid=25213
View this thread: http://www.excelforum.com/showthread...hreadid=561717



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Strugling IF Formula


VBA Noob a écrit :

Try this

=IF(B2=D1,2,IF(OR(A2=D1,C2=D1)<"",1,""))


Sorry, this is wrong.

This is not what Brento has asked for!
macropod give the right solution.

Michel Bruyère.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Strugling IF Formula


VBA Noob a écrit :

Try this

=IF(B2=D1,2,IF(OR(A2=D1,C2=D1)<"",1,""))


Sorry, this is wrong.

This is not what Brento has asked for!
macropod give the right solution.

Michel Bruyère.

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
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 09:24 PM.

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

About Us

"It's about Microsoft Excel"