Macro code required

pavanranjan

Board Regular
Joined
Sep 20, 2008
Messages
50
Dear Sir

I need the macro to perform the below steps for checking unique values

Inv No Code Qty per unit
IN2030125 IZ131 20 20
IN2030126 IS256 39 33.69
IN2030127 IS269 58 47.38
IN2030128 IS290 77 61.07
IN2030129 IS299 96 74.76
IN2030130 uq698 115 88.45
IN2030131 dh987 134 102.14
IN2030132 df369 153 115.83



Inv No Code Qty per unit Check
IN2030125 IZ131 20 20 Data is true
IN2030131 dh987 39 33.69 Data is true
IN2030131 dh987 58 36.5 Data is incorrect
 
Last edited:

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hello,

I think you need to clarify the rules for checking the data, as I get different results than you.

What you need to do, without a macro, is the following.

In a column after the unit column you need to add a cell

=A2&b2&C2&D2 (use the first row of data)

then in the second area of data add a formula

=IF(ISERROR(MATCH(E13,$E$2:$E$9,0)),"Data is incorrect","Data is true")

change cell refs as required

E13 is the combined cell ref for the second area
E2:E9 is the combined cell ref area for the first area.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,541
Messages
6,179,418
Members
452,912
Latest member
alicemil

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