Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-19-2022, 06:35 PM
rohanan rohanan is offline Help with Formula Windows 10 Help with Formula Office 2016
Novice
Help with Formula
 
Join Date: Oct 2022
Posts: 2
rohanan is on a distinguished road
Unhappy Help with Formula

Hi



I am trying to get this formula to work, but its giving me an incorrect value-

=IF(XMATCH($E2,All!E:E,0)=XMATCH($B2,All!B:B,0),"All!E"&XMATCH($E2,All!E:E,0),FALSE)

The expected answer should be the value stored in All!E210

Actual answer is the text value of "All!E210"

How can I fix this. This has been driving me crazy for the last 2 days!! Please help!!
Reply With Quote
  #2  
Old 10-20-2022, 07:32 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Help with Formula Windows 10 Help with Formula Office 2021
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi
please post a sample sheet ( no pics please) with some data and some manually calculated results.Thx
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 10-20-2022, 09:42 AM
rohanan rohanan is offline Help with Formula Windows 10 Help with Formula Office 2016
Novice
Help with Formula
 
Join Date: Oct 2022
Posts: 2
rohanan is on a distinguished road
Default

Please find attached. I have a master spreadsheet called "All" and a "Data" sheet. I need to bring the right data from the "All" spreadsheet to the "Data" spreadsheet based on a criteria that column B and E should match in both the sheets.The results need to go into G-K
Attached Files
File Type: xlsx Test.xlsx (191.0 KB, 9 views)
Reply With Quote
  #4  
Old 10-23-2022, 05:23 AM
p45cal's Avatar
p45cal p45cal is offline Help with Formula Windows 10 Help with Formula Office 2019
Expert
 
Join Date: Apr 2014
Posts: 866
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

It depends what you're trying to do.
It looks as though you're comparing 2 columns in each table to find matches:
A formula at cell G2 (copied down) does this and that may be all you need.
Code:
=XLOOKUP($B2 & "¬" & $E2,All!$B$2:$B$2835 & "¬" & All!$E$2:$E$2835,All!$A$2:$E$2835,"Not found")
However, you may have a problem; there may be more than one row in the All sheet that matches the two columns in the Data sheet. I've highlighted which rows this applies to in column N where if there's a value >1 there are multiple matches. In a few instance I've shown those matches in column O at rows 28, 34 and 512 (where there are 3 matches).
So are you looking to return only complete matches, or maybe on more than 2 columns?


Edit: I've just noticed you're using Office 2016 so some of the functions I've used may not work, although the results of those formulae should still show. Tell me if the G2 formula fails and I'll re-write.
Attached Files
File Type: xlsx msofficeforums49833Test.xlsx (197.3 KB, 3 views)
Reply With Quote
  #5  
Old 10-24-2022, 01:51 AM
ArviLaanemets ArviLaanemets is offline Help with Formula Windows 8 Help with Formula 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

Maybe
Code:
=IF(XMATCH($E2,All!E:E,0)=XMATCH($B2,All!B:B,0);INDIRECT("All!E"&XMATCH($E2,All!E:E,0)),FALSE)
But something feels wrong there! You want to return from sheet All the value from column E (All!E210="Applications"), which must be same same as value in cell Data!E2 ("Applications"), plus some additional conditions! So why all this calculation? Why not simply
Code:
=IF(B2=E2,E2,FALSE)
Reply With Quote
Reply

Tags
excel formula



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula Copy Row 2 Row But Next Column In Formula From Another Tab TimG Excel 3 04-16-2018 09:20 PM
Help with Formula Ragincajun22 Excel 1 08-24-2017 08:44 AM
Help with an IF Formula Cbate Excel 1 08-17-2017 07:29 AM
Help with Formula Possible to use an existing vlookup formula to also insert correct info and trigger a SUM formula innkeeper9 Excel 2 09-13-2016 08:59 PM
Need help with dragging a formula and changing a reference column as I drag the formula. LupeB Excel 1 10-22-2015 03:02 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:39 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