Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Help whith Data parser

what i am trying to do is have a formula or macro that can look in cell u4
then cell v4 then cell w4 and so on, if the cell contains a 1, 2 or -1
report the data in cell v1 to cell n4.

Each row has data from u to cs with about 500 rows of data. I have to parse
each row looking for a 1 or -1 or sometimes even a 2 or -2 then report the
value of the header row to one of 6 blank column rows n to s. There is a
maximum of 6 codes allowed per row hence the 6 blank column rows to show
data. I am trying to parse a spreadsheet designed by someone else so changing
the original layout is not an option.

Thank you in advance for any help on this.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Help whith Data parser

Tonkat,

In cell N4, this looks for any occurence of 1 or 2....

=IF(OR(COUNTIF(U4:Z4,"*1*")0,COUNTIF(U4:Z4,"*2*") 0),V1,"Not Found")

Though I have my doubts as to your problem statement.

HTH,
Bernie
MS Excel MVP


"Tomkat743" wrote in message
...
what i am trying to do is have a formula or macro that can look in cell u4
then cell v4 then cell w4 and so on, if the cell contains a 1, 2 or -1
report the data in cell v1 to cell n4.

Each row has data from u to cs with about 500 rows of data. I have to parse
each row looking for a 1 or -1 or sometimes even a 2 or -2 then report the
value of the header row to one of 6 blank column rows n to s. There is a
maximum of 6 codes allowed per row hence the 6 blank column rows to show
data. I am trying to parse a spreadsheet designed by someone else so changing
the original layout is not an option.

Thank you in advance for any help on this.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Help whith Data parser


Thank you but that formula only looks for one instance in a row the row may
have up to 6 cells that contain either a 1 or a 2. Each time a number 1 or 2
is encountered i need it to report v1.
"Bernie Deitrick" wrote:

Tonkat,

In cell N4, this looks for any occurence of 1 or 2....

=IF(OR(COUNTIF(U4:Z4,"*1*")0,COUNTIF(U4:Z4,"*2*") 0),V1,"Not Found")

Though I have my doubts as to your problem statement.

HTH,
Bernie
MS Excel MVP


"Tomkat743" wrote in message
...
what i am trying to do is have a formula or macro that can look in cell u4
then cell v4 then cell w4 and so on, if the cell contains a 1, 2 or -1
report the data in cell v1 to cell n4.

Each row has data from u to cs with about 500 rows of data. I have to parse
each row looking for a 1 or -1 or sometimes even a 2 or -2 then report the
value of the header row to one of 6 blank column rows n to s. There is a
maximum of 6 codes allowed per row hence the 6 blank column rows to show
data. I am trying to parse a spreadsheet designed by someone else so changing
the original layout is not an option.

Thank you in advance for any help on this.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Help whith Data parser

The formula looks at all six, and reports whether a 1 or 2 is found. Not
sure what you mean by "Each time" - do you have six different cells where
you want the formula?

Bernie

"Tomkat743" wrote in message
...

Thank you but that formula only looks for one instance in a row the row
may
have up to 6 cells that contain either a 1 or a 2. Each time a number 1
or 2
is encountered i need it to report v1.
"Bernie Deitrick" wrote:

Tonkat,

In cell N4, this looks for any occurence of 1 or 2....

=IF(OR(COUNTIF(U4:Z4,"*1*")0,COUNTIF(U4:Z4,"*2*") 0),V1,"Not Found")

Though I have my doubts as to your problem statement.

HTH,
Bernie
MS Excel MVP


"Tomkat743" wrote in message
...
what i am trying to do is have a formula or macro that can look in cell
u4
then cell v4 then cell w4 and so on, if the cell contains a 1, 2 or -1
report the data in cell v1 to cell n4.

Each row has data from u to cs with about 500 rows of data. I have to
parse
each row looking for a 1 or -1 or sometimes even a 2 or -2 then report
the
value of the header row to one of 6 blank column rows n to s. There is
a
maximum of 6 codes allowed per row hence the 6 blank column rows to
show
data. I am trying to parse a spreadsheet designed by someone else so
changing
the original layout is not an option.

Thank you in advance for any help on this.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Filling a listbox whith recordset data LuisM[_2_] Excel Programming 4 July 31st 06 05:02 AM
Excel 4.0 parser JScoobyCed Excel Programming 1 November 24th 05 07:51 PM
copy to a Closed workbook. whith Path . willie30[_5_] Excel Programming 4 November 26th 04 07:55 AM
xml parser in Excel Mark[_36_] Excel Programming 4 February 18th 04 03:16 PM
MS Excel - SQL Parser with VB .NET Marcela[_2_] Excel Programming 0 July 16th 03 07:02 PM


All times are GMT +1. The time now is 11:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"