Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Using AND/OR functions

Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 301
Default Using AND/OR functions

=IF(OR(A1=99292,99354,99356,"SIMPLE"),B1,C1)
(and fill down)
Bob Umlas
Excel MVP

"Constance" wrote in message
...
Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal
the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Using AND/OR functions

Are you sure, Bob?

99354 and 99356 both evaluate as TRUE, so the OR wouldd always be TRUE, but
Excel doesn't like the text string "SIMPLE" being included in the OR
function, so gives a #VALUE error.
--
David Biddulph

"Bob Umlas" wrote in message
...
=IF(OR(A1=99292,99354,99356,"SIMPLE"),B1,C1)
(and fill down)
Bob Umlas
Excel MVP


"Constance" wrote in message
...
Hello,
I've never quite figured out how to use these functions but I think one
of
these would work for what I want to do so I need some help in
ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal
the
Occur in column B, and if the Code is column A is anything else I want
the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Using AND/OR functions

Have you test your formula?

"Bob Umlas" wrote:

=IF(OR(A1=99292,99354,99356,"SIMPLE"),B1,C1)
(and fill down)
Bob Umlas
Excel MVP

"Constance" wrote in message
...
Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal
the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance






  #7   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Using AND/OR functions

One way ..

Put in D2:
=IF(A2="","",IF(ISNUMBER(MATCH(A2,{99354;99356;"SI MPLE";99292},0)),B2,C2))
Copy down
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Constance" wrote:
Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Using AND/OR functions

=IF(OR(A2=99292,A2=99354,A2=99356,A2="SIMPLE"),B2, C2)
--
David Biddulph

"Constance" wrote in message
...
Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal
the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance



  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Using AND/OR functions

Simplified version

=IF(OR(A1={99292,99354,99356,"SIMPLE"}),B1,C1)


"David Biddulph" wrote:

=IF(OR(A2=99292,A2=99354,A2=99356,A2="SIMPLE"),B2, C2)
--
David Biddulph

"Constance" wrote in message
...
Hello,
I've never quite figured out how to use these functions but I think one of
these would work for what I want to do so I need some help in ascertaining
how to write a formula.
For example, in the situation below, if the Code in Column A is 99292,
99354, 99356, or SIMPLE, I want the formula result in Column D to equal
the
Occur in column B, and if the Code is column A is anything else I want the
formula result in Column D to equal the Units in Column C.
Code Occur Units Formula
99354 1 3
99356 1 2
99211 2 2
99212 4 4
SIMPLE 3 6
99292 2 4

Any help is appreciated!
Thanks.
--
Constance




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
XL2003 FILTER FUNCTIONS VS. XL2007 FILTER FUNCTIONS RET70168 Excel Worksheet Functions 0 June 15th 07 01:00 AM
Help with functions michelle Excel Worksheet Functions 3 February 23rd 07 06:36 PM
efficiency: database functions vs. math functions vs. array formula nickname Excel Discussion (Misc queries) 2 July 14th 06 04:26 AM
Looking for a site with functions that substitute the ATP functions Franz Verga Excel Worksheet Functions 3 June 24th 06 04:30 AM
Nesting functions in the functions dialog box cs170a Excel Worksheet Functions 0 June 10th 05 10:36 PM


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