Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-11-2018, 10:43 PM
LearnerExcel LearnerExcel is offline If condition related query... Windows 7 32bit If condition related query... Office 2013
Advanced Beginner
If condition related query...
 
Join Date: Nov 2016
Posts: 81
LearnerExcel will become famous soon enoughLearnerExcel will become famous soon enough
Default If condition related query...

How can I get the result as in the attached image using if condition based on Column A & Column B values?
Attached Images
File Type: png Query.PNG (7.6 KB, 10 views)
Reply With Quote
  #2  
Old 03-12-2018, 01:37 AM
ArviLaanemets ArviLaanemets is offline If condition related query... Windows 8 If condition related query... Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

You create on separate sheet a crossover table with p.e. YourCode as leftmost column and Area values as headers of other columns. Like:
Code:
YourCode    ME-01          RE-01          IN-01          IN-02
9901010     SHIP_MECH
9901020     SHIP_INSP    
9901030                   HPS_MECH
9901090                                   SHIP_INST     HPS_INST
And I advice to defime this as a Table, p.e. tCO. And define the current table too as a Table, p.e. tCurrent.

Into column C of your current table, you enter the formula:
Code:
=INDEX(tCO, MATCH([@CODE],tCO[YourCode],0),MATCH([@AREA],tOC[#Headers],0))
Had to rename column CODE of crossover table to YourCode, as this name messed up the code tag of forum!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
If condition related query... Query related to Concatenate? LearnerExcel Excel 2 02-18-2018 07:43 PM
If condition related query... How to use if condition to for this ... LearnerExcel Excel 1 12-19-2016 02:14 PM
Query and Power Query not working Excel 2016 bl10 Excel 0 07-22-2016 06:25 PM
ms office related query d19123 Office 0 07-02-2013 05:48 AM
How to Query Text in MS-Excel 2010 or Import Data & Query outside of Excel? mag Excel 0 10-18-2012 11:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft