>I am trying to get a list of print jobs from event viewer scaled down to
>just show what I want. I currently export this info into a spreadsheet
[quoted text clipped - 14 lines]
>
>TIA!
Here's one way:
Download and install Longre's free morefunc.xll add-in from
http://xcell05.free.fr
Then use this formula:
(assumes your Cell D is A1, change as required):
=REGEX.SUBSTITUTE(
A1,".*printed on([\s\n]+?)(\w+)[\s\S]*(\d+$)","[2]; pages printed: [3]")
The formula also assumes that the page count is the very last numeric string in
Cell D. If this is not the case, we can certainly make a slight change.
--ron
Ron Rosenfeld - 19 Mar 2007 18:20 GMT
>>I am trying to get a list of print jobs from event viewer scaled down to
>>just show what I want. I currently export this info into a spreadsheet
[quoted text clipped - 30 lines]
>Cell D. If this is not the case, we can certainly make a slight change.
>--ron
Oops. Should be:
=REGEX.SUBSTITUTE(
A1,"[\S\s]*printed on([\s\n]+?)(\w+)[\s\S]*(\d+$)","[2]; pages printed: [3]")
--ron
Here is an interesting formula that assumes there are no spaces in your
printer name. This is also based on the "D" information being in cell D1.
=MID(D1,FIND("printed on",D1)+11,(FIND(" ",D1,(FIND("printed
on",D1)+11))-(FIND("printed on",D1)+11)))
>I am trying to get a list of print jobs from event viewer scaled down to
>just show what I want. I currently export this info into a spreadsheet
[quoted text clipped - 14 lines]
>
> TIA!
Ron Rosenfeld - 19 Mar 2007 18:16 GMT
>Here is an interesting formula that assumes there are no spaces in your
>printer name. This is also based on the "D" information being in cell D1.
>
>=MID(D1,FIND("printed on",D1)+11,(FIND(" ",D1,(FIND("printed
>on",D1)+11))-(FIND("printed on",D1)+11)))
One potential problem with that method, which I ran in to when testing it
earlier, is that it can give unexpected results depending on where line breaks
exist in cell D1.
--ron
Ron Rosenfeld - 19 Mar 2007 18:22 GMT
>Here is an interesting formula that assumes there are no spaces in your
>printer name. This is also based on the "D" information being in cell D1.
>
>=MID(D1,FIND("printed on",D1)+11,(FIND(" ",D1,(FIND("printed
>on",D1)+11))-(FIND("printed on",D1)+11)))
And my original would also screw up depending on where line breaks existed. I
just posted a revision that takes care of that problem.
--ron