vba code- when add in a new product, calculate the price after conversion and unit price

mychi11

Board Regular
Joined
May 11, 2020
Messages
95
Office Version
  1. 2016
Platform
  1. Windows
I was hoping to write a vba so that when a new product is added, i will get the unit price (L2/H2) and when column I, the currency row= euro, it will convert column J by 10 let's say, if not do nothing and return the cell back to the original number of column J. I have a simple formula, but i was wondering if someone can provide with a vba code
Purchase Order and Budget Estimation.xlsm
ABCDEFGHIJKL
1VENDORMATERIAL NO.DESCRIPTIONCATEGORYCAT*PACK SIZEUNITUNIT COSTCUR.PRICE (BASED ON MIN ORDER)PRICE IN HK$ (AFTER CONVERSION)REQUIRE EVALUATION? (Y/N)
2AIRGATE ENGINEERING (HK) LTDSERVICEONE YEAR MAINTENANCE SERVICE CONTRACT OF THE CLEANROOM FOR IVF CENTRE (HK) LTD 1/1/2022 to 31/12/2022 HK$55,500/ 1 year maintenance service HK$18,500/ per timeMAINTENANCE (LAB)11year$58,000.00HK$5800058,000.00N
3AIRGATE ENGINEERING (HK) LTDSERVICEONE YEAR MAINTENANCE SERVICE CONTRACT (ONE TIME)MAINTENANCE (LAB)11year$18,500.00HK$1850018,500.00Y
4AIRGATE ENGINEERING (HK) LTDSUPPLY AND REPLACE POWER SUPPLY MODULEMAINTENANCE (LAB)11time$4,000.00HK$40004,000.00Y
Items
Cell Formulas
RangeFormula
H2:H4H2=IF(C2<>"",K2/F2,"")
K2:K4K2=IFERROR(IF(I2="HK$",J2,J2*10),"")
Named Ranges
NameRefers ToCells
Currency=OFFSET(Items!$I$1,1,,COUNTA(Items!$J$2:$J$999)-1,1)K2
ItemName=OFFSET(Items!$C$2,1,,COUNTA(Items!$C$2:$C$999)-1,1)H3
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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