Solved

Excel Formula

Posted on 2011-02-27
3
240 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

739 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