Getting Spill error...

sanantonio

Board Regular
Joined
Oct 26, 2021
Messages
124
Office Version
  1. 365
Platform
  1. Windows
Hi All,

I have a data table with our Meat / Fish lines. For systematic reasons some of are items have "Dummy" codes. These Dummy Codes are linked to "real codes". The Real codes and dummy codes are mixed into the same data table. I can't change the data table.

I've written a formula which looks a-okay to me, but I keep getting the irritating "The world will end because we think you have a circular formula" message and I get a #SPILL! that an iferror cannot overcome.

1683811431965.png


So the formula is if the first 5 value of the Item Desc is "Dummy" (All our dummy codes are called this) then lookup the description in that column to find the real item (Which will have the exact same name except for the "Dummy" at the beginning).
And return the item code.

So you can see for the ones where "Dummy" exists this works great, it's returning the real item code. Into my xlookup I then have if not found return the item number, and on the if (IE: If the first 5 characters don't say "Dummy" then return the item code. But for everything that doesn't answer "Yes" for the IF I get this #Spill.

Any ideas anyone?
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Ideally need to resolve the spill and the circular nonsense!
 
Upvote 0
The false part of the formula should have an @ like you have for the iferror.
 
Upvote 1
The false part of the formula should have an @ like you have for the iferror.
Yup! This and I managed to simplify the formula:
1683812302939.png

This works with the desired results. No circular message and no spill!
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,217,047
Messages
6,134,271
Members
449,862
Latest member
Muhamad Irfandi

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