Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 14
Red face If function with lots of criteria

Hi All,

I want to create a formula that changes the content of a cell, based on what information is in the other cells.

For example:
If A1= "Team A" and B1 is between 10 and 1000, then C1 = Action or
if A1 = "Team A" and B1 is greater than 1000, then C1 = Report or
If A1 = "Team B" and B1 is between 100 and 10,000, then C1 = Action or
If A1 = "Team B" and B1 is greater 10,000, then C1 = Report or
If A1 = "Team C" then C1 = Report

Any help would be greatly appreciated !!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default If function with lots of criteria

Hi,

Am Thu, 18 Sep 2014 09:10:53 +0100 schrieb Jooniper:

For example:
If A1= "Team A" and B1 is between 10 and 1000, then C1 = Action or
if A1 = "Team A" and B1 is greater than 1000, then C1 = Report or
If A1 = "Team B" and B1 is between 100 and 10,000, then C1 = Action or
If A1 = "Team B" and B1 is greater 10,000, then C1 = Report or
If A1 = "Team C" then C1 = Report


try:
=IF(OR(AND(A1="Team A",B1=10,B1<=1000),AND(A1="Team B",B1=100,B1<=10000)),"Action",IF(OR(AND(A1="T eam A",B11000),AND(A1="Team B",B110000),A1="Team C"),"Report",""))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Junior Member
 
Posts: 14
Default

Thank you very much Claus. I now need help with the below:

If A1= "Team A" and B1 is between 10 and 1000, then D1 = 10 or
if A1 = "Team A" and B1 is greater than 1000, then D1 = 1000 or
If A1 = "Team B" and B1 is between 100 and 10,000, then D1 = 100 or
If A1 = "Team B" and B1 is greater 10,000, then D1 = 10000 or
If A1 = "Team C" then C1 = Report[/i][/color]




Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Thu, 18 Sep 2014 09:10:53 +0100 schrieb Jooniper:

For example:
If A1= "Team A" and B1 is between 10 and 1000, then C1 = Action or
if A1 = "Team A" and B1 is greater than 1000, then C1 = Report or
If A1 = "Team B" and B1 is between 100 and 10,000, then C1 = Action or
If A1 = "Team B" and B1 is greater 10,000, then C1 = Report or
If A1 = "Team C" then C1 = Report


try:
=IF(OR(AND(A1="Team A",B1=10,B1<=1000),AND(A1="Team B",B1=100,B1<=10000)),"Action",IF(OR(AND(A1="T eam A",B11000),AND(A1="Team B",B110000),A1="Team C"),"Report",""))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default If function with lots of criteria

Hi,

Am Thu, 18 Sep 2014 11:25:10 +0100 schrieb Jooniper:

If A1= "Team A" and B1 is between 10 and 1000, then D1 = 10 or
if A1 = "Team A" and B1 is greater than 1000, then D1 = 1000 or
If A1 = "Team B" and B1 is between 100 and 10,000, then D1 = 100 or
If A1 = "Team B" and B1 is greater 10,000, then D1 = 10000 or
If A1 = "Team C" then C1 = Report
[/i][/color]

try:
=IF(AND(A1="Team A",B1=10,B1<=1000),10,IF(AND(A1="Team A",B11000),1000,IF(AND(A1="Team B",B1=100,B1<=10000),100,IF(AND(A1="Team B",B110000),10000,IF(A1="Team C","Report","")))))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #5   Report Post  
Junior Member
 
Posts: 14
Default

This is absolutely fantastic. Thank you so much again


Quote:
Originally Posted by Claus Busch View Post
Hi,

Am Thu, 18 Sep 2014 11:25:10 +0100 schrieb Jooniper:

If A1= "Team A" and B1 is between 10 and 1000, then D1 = 10 or
if A1 = "Team A" and B1 is greater than 1000, then D1 = 1000 or
If A1 = "Team B" and B1 is between 100 and 10,000, then D1 = 100 or
If A1 = "Team B" and B1 is greater 10,000, then D1 = 10000 or
If A1 = "Team C" then C1 = Report
[/i][/color]

try:
=IF(AND(A1="Team A",B1=10,B1<=1000),10,IF(AND(A1="Team A",B11000),1000,IF(AND(A1="Team B",B1=100,B1<=10000),100,IF(AND(A1="Team B",B110000),10000,IF(A1="Team C","Report","")))))


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
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
Help with lots of formulas always28smiling Excel Worksheet Functions 3 March 23rd 13 03:09 AM
Need help with sort function and lots of data? Andrei90 Excel Discussion (Misc queries) 2 August 22nd 09 01:29 AM
How to sum lots of columns(over 200) with one criteria? smart.daisy Excel Discussion (Misc queries) 1 September 9th 05 09:22 PM
Lots of Frustration - Lots of Arrays, Dynamic Ranges Don't Work, Help With Options Karl Burrows Excel Programming 4 April 17th 04 12:48 PM
Comining lots of functions into one User defined function ksnapp Excel Programming 0 January 7th 04 10:51 PM


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