Solved

Excel Formula

Posted on 2011-02-27
3
235 Views
Last Modified: 2012-05-11
Hello,

Trying to build a formula for the following:
If sheet2 k1 or k2 contains TS anywhere in those cells and sheet12.aj45 is greater than >30, then display sheet12.ao45 value.
0
Comment
Question by:sandramac
  • 2
3 Comments
 
LVL 50

Accepted Solution

by:
barry houdini earned 500 total points
ID: 34992392
Try

=IF(AND(COUNTIF(Sheet2!K1:K2,"*TS*")>0,Sheet2!AJ45>30),Sheet2!AO45,"")

regards, barry
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34992418
Note by using the wildcards * in COUNTIF that means it looks for TS anywhere in the cell, including within other test, so if K1 contains "arTS" then that would qualify. If you just want to look for "TS" with no other text allowed in the cell then remove the two *, i.e.

=IF(AND(COUNTIF(Sheet2!K1:K2,"TS")>0,Sheet2!AJ45>30),Sheet2!AO45,"")

regards, barry

0
 

Author Closing Comment

by:sandramac
ID: 34992512
Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now