Adding Additional Logic to Existing Formula

meppwc

Well-known Member
Joined
May 16, 2003
Messages
639
Office Version
  1. 365
Platform
  1. Windows
The formula below works correctly and yields to ="283879B5EA41" as the result
=IFERROR(XLOOKUP(A2,'MAC TABLE'!G:G,'MAC TABLE'!A:A),"")

I would like to add the following logic to this formula to yield to the result of 283879b5EA41 (removes the leading =" and trailing ")
MID(A2,3,LEN(A2)-3)

I am having difficulty incorporating the additional trim logic to the existing formula
 
How about
Excel Formula:
=substitute(XLOOKUP(A2,'MAC TABLE'!G:G,'MAC TABLE'!A:A,""),"""","")
 
Upvote 0
Fluff
The leading = is still there using the formula that you provided.
 
Upvote 0
Didn't realize that was part of the result, try
Excel Formula:
=mid(substitute(XLOOKUP(A2,'MAC TABLE'!G:G,'MAC TABLE'!A:A,""),"""",""),2,100)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

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