Carve out table

OrangeYoda

New Member
Joined
Sep 23, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Good afternoon all.
I'm fairly familiar with Excel. I have nasty formula that works fine. I would like to see it shorter in order to maintain it in the future.

You can ignore most this formula. I've highlighted the issue. Each item below is one I have to measure by footage whereas all my other products are a simple count/quantity. So, in this formula I've built a carve out exception that looks at my per foot material(wire). If it sees a wire sku it reads a separate table (a table of wire) and brings back the cost per foot instead of per roll.

I need to add more wire types, but this is getting out of hand quickly. Is there a more efficient way to do this?

IF(ISNA(VLOOKUP(Q111,Pricebook!$A:$E,5,0)),"",IF(OR(Q111=2487703,Q111=2487704,Q111=2487705,Q111=2487710,Q111=2487708,Q111=2487712,Q111=852129,Q111=3571573,Q111=3571565,Q111=3571567,Q111=3571561,Q111=3571562,Q111=136847,Q111=136850),VLOOKUP(Q111,Price_Calc_Mod!$D:$H,5)*R111,VLOOKUP(Q111,Pricebook!$A:$E,5,0)*R111))
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Good afternoon all.
I'm fairly familiar with Excel. I have nasty formula that works fine. I would like to see it shorter in order to maintain it in the future.

You can ignore most this formula. I've highlighted the issue. Each item below is one I have to measure by footage whereas all my other products are a simple count/quantity. So, in this formula I've built a carve out exception that looks at my per foot material(wire). If it sees a wire sku it reads a separate table (a table of wire) and brings back the cost per foot instead of per roll.

I need to add more wire types, but this is getting out of hand quickly. Is there a more efficient way to do this?

IF(ISNA(VLOOKUP(Q111,Pricebook!$A:$E,5,0)),"",IF(OR(Q111=2487703,Q111=2487704,Q111=2487705,Q111=2487710,Q111=2487708,Q111=2487712,Q111=852129,Q111=3571573,Q111=3571565,Q111=3571567,Q111=3571561,Q111=3571562,Q111=136847,Q111=136850),VLOOKUP(Q111,Price_Calc_Mod!$D:$H,5)*R111,VLOOKUP(Q111,Pricebook!$A:$E,5,0)*R111))
Even an Excel function I can google would be great. Just not sure what to Google at this point for help.
 
Upvote 0
Bumping up since I posted this on a Friday afternoon. None of us are thinking Excel then.
 
Upvote 0
Hi, instead of hard coding the product numbers in the formula - why not list then on a sheet. For example in column A of a sheet called exceptions.

...IF(ISNUMBER(MATCH(Q111,Exceptions!A:A,0)),VLOOKUP(Q111,Price_Calc_Mod!$D:$H,5)...
 
Upvote 0
Solution
Hi, instead of hard coding the product numbers in the formula - why not list then on a sheet. For example in column A of a sheet called exceptions.

...IF(ISNUMBER(MATCH(Q111,Exceptions!A:A,0)),VLOOKUP(Q111,Price_Calc_Mod!$D:$H,5)...
I love you! That will work perfectly. ISNUMBER/MATCH just wasn't coming to the front of the brain. Ty!!!
 
Upvote 0

Similar threads

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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