ok let me explain. my company has an excel spreadsheet that is essentially a price list. For industrial construction parts. Once a week we get a price sheet from our distributor of price changes and new items. The spreadsheet that we keep has a column (Column A) of Product IDs. The IDs range from 7-10 numbers or letters and dont follow a particular pattern. The girl at the office copies and pastes the list from the distributor to Column D of the Spreadsheet. She then manually scrolls through all the stuff in Column D (which is in a random order) and finds matches with the product ids in Col A. A match means a price change. Then the girl copies the new price into our price sheet.

I am trying to automate this a little. There are 3700 lines this person has to go through once a week. Where my problem lies is that once the new product Ids are copied into column D they are in any order. So the ID in A17 may match an ID in D347 and if so I need to know about it. The reverse doesnt need to work. I just need to know if the product id in A exists anywhere in D and then use a conditional to copy the corresponding new price to another column (easy part)

so if ($stufffromA eq $stufffromanywhereinD) { copy new price to column R }

hope that clears it up and doesnt make it muddier


In reply to Re^2: new dilemma on the same song that remains... umm the same by trickyq
in thread new dilemma on the same song that remains... umm the same by trickyq

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.