Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Multiple Conditions for IF statement to evaluate

i have multiple branch numbers in one column. I want to do a pivot table
using an inserted column for financial planners. Is there a way to create a
conditional or any other usable statement in Excel along the following logic?

if cell y2 is one of (25,19,61), then "Sedric"
if cell y2 is one of (8,4,31,33), then "Fred","")

I am using Excel 2002.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Multiple Conditions for IF statement to evaluate

=if(or(y2={25,19,61}),"Sedric",if(or(y2={8,4,31,33 }),"Fred",""))

But if you're going to have more than a couple of these categories, you may find
creating a table on a different sheet easier to update:

25 Sedric
19 Sedric
61 Sedric
8 Fred
4 Fred
....

then use a formula like:
=if(iserror(vlookup(y2,sheet2!a:b,2,0)),"",vlookup (y2,sheet2!a:b,2,0))

Debra Dalgleish explains it:
http://www.contextures.com/xlFunctions02.html (for =vlookup())

Bees*Stars wrote:

i have multiple branch numbers in one column. I want to do a pivot table
using an inserted column for financial planners. Is there a way to create a
conditional or any other usable statement in Excel along the following logic?

if cell y2 is one of (25,19,61), then "Sedric"
if cell y2 is one of (8,4,31,33), then "Fred","")

I am using Excel 2002.


--

Dave Peterson
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
Function evaluate multiple cells and return 1st one w/a value Dan Shoemaker Excel Discussion (Misc queries) 1 August 27th 06 02:46 AM
IF Statement with multiple conditions Ladypep Excel Discussion (Misc queries) 3 April 5th 06 02:44 PM
If statement using multiple conditions SCOOBYDOO Excel Worksheet Functions 1 June 6th 05 12:45 PM
"OR" operator to evaluate multiple conditions anand Excel Worksheet Functions 1 May 23rd 05 08:49 PM
COUNTIF Statement with Multiple Conditions in Different Ranges KJA Excel Worksheet Functions 2 April 26th 05 05:14 PM


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