Solved

Excel Formula

Posted on 2011-02-27
3
238 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

828 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