Hi, I am new to this space, please help me with a simple requirement in macro.
Consider that my required value is 2300 Type Value Quantity Extended Value 100 2500.00 0 0.00 200 3500.00 0 0.00 300 5000.00 1 5000.00 500 8000.00 0 0.00 1000 10000.00 2 20000.00 Total 25000.00 >From the above case, 2 * 1000 = 2000 1 * 300 = 300 Total = 2300 (my required value) My requirement is a macro to calculate the exact quantities for the required value. Thanks in advance Mani P.S - Unable to upload the spreadsheet. Sorry for the inconvenience. --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com If you find any spam message in the group, please send an email to Ayush @ jainayus...@gmail.com -~----------~----~----~----~------~----~------~--~---