VLOOKUP - Check if Cell contains Zero. If it does move onto next..

AndyGray

New Member
Joined
May 31, 2017
Messages
30
Looking for quite an advanced formula in Excel using a Vlookup...

I have a list of customer prices in my RawData. These are layed out like this

DESCREFERENCECardcodePRICE1FROM1TO1PRICE2FROM2TO2PRICE3FROM3TO3PRICE4FROM4TO4
Mr ExcelQ733/070C0010008.4800000000000

<colgroup><col><col><col><col span="12"></colgroup><tbody>
</tbody>


Now price 1 is a standard price. Price2/3/4 are all price breaks. Which will show "Price2" 8.00, From2 100, To2 10000. So basically if a customer orders between 100 and 10000 he gets it at a discounted price.


I need it putting into a separate sheet which is formatted like so...

ItemCodeCardCodeLineNumAmountSPP1LNumPriceSPP2LNum
Currency
QMB06C0010000
>10003.45
0
GBP
QMB06
C0010001<=1000
3.21GBP
QMB11C0010000>8005.150GBP
QMB11C0010001<=8004.951GBP

<colgroup><col style="width:47pt" width="62" span="8"> </colgroup><tbody>
</tbody>



(This has been manually inserted) However, i Want to be able to say "If Price2 has a value in. Then apply "Price2" (from RawData" and insert it into "Price". If that makes sense... Then it need to look for the next row, create a new row, and insert "Price3" If there is another price break in there... If it doesn't have a price in Price 3. Then it needs to ignore that and move onto the next product? If that makes sense?

I will try and attach my spreadsheet...
The Data is in RawData and the SPP2 is where I am looking.

Please find spreadsheet on following link...

https://mbcladding.co.uk/agray2234.xlsx

Thanks.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,605
Messages
6,120,473
Members
448,967
Latest member
visheshkotha

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