Mapping Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
626
Office Version
  1. 365
Platform
  1. Windows
I am stuck with figuring out the correct formula for this situation. Your assistance is greatly appreciated.

Formula involves two worksheets named “MAIN” and “ORACLE”
Formula needed for cell W8327 of MAIN

Lookup value in S8327 of MAIN worksheet in column B of ORACLE worksheet
If found AND column BN of ORACLE equals “INV-MS SERVICE”, then map BH of MAIN to W8327 of MAIN.

If value not found in column B of ORACLE worksheet, then W8327 equals “MSN NOT FOUND”
If value is found in column B of ORACLE and value in BN does not equal “INV-MS SERVICE”, then W8327 equals “NOT ON SERVICE CONTRACT”
 
Hang on..............think I made a dumb mistake..............be right back
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I’m not at a computer at the moment, but I’d like you to look at two things:
1. In a recent post, you mentioned Oracle while the formula uses upper case ORACLE. Check your worksheet name and match the same case.
2. If there is no issue with the text case, then the formula is not seeing the initial match. So there is some problem there that needs to be investigated. You mentioned Oracle B5 having contents of 3100R300888, I’m assuming without quotes. In some empty cell on your MAIN sheet, enter
Excel Formula:
=Oracle!B5=3100R300888
…and let me know if it returns a result of TRUE or FALSE.
 
Upvote 0
I think the problem is right here in the formula: ",$BH8327"
If the value in MAIN S8327 is found in ORACLE column B, then map back the value in column BH in ORACLE on the same row where the value was found.
So, the value in the lookup was found on Oracle cell B5, so map back the value found in Oracle cell BH, which is 5048101
If I try to change ",$BH8327" to ,ORACLE!BH:BH, it returns #SPILL!
 
Upvote 0
Also, to answer your questions, both worksheets MAIN and ORACLE, are uppercase
And the lookup and results values do not have quotes
If you look at my above post, I believe the change needed is in this spot...................,$BH8327
 
Upvote 0
Your first post said:
If found AND column BN of ORACLE equals “INV-MS SERVICE”, then map BH of MAIN to W8327 of MAIN.
"BH of MAIN"...are you now saying you want BH of ORACLE instead? If so, that would be:
Excel Formula:
=LET(r,MATCH($S8327,ORACLE!$B:$B,0), IF(ISERROR(r),"MSN NOT FOUND",IF(INDEX(ORACLE!$BN:$BN,r)="INV-MS SERVICE",INDEX(ORACLE!$BH:$BH,r),"NOT ON SERVICE CONTRACT")))
 
Upvote 0
Solution
WooHoo............that did it. Now all I have to do is apply this formula for the entire column and test to see if I get the desired results..............thanks so much for you assistance and patience.
 
Upvote 0

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top