Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default formula for copying a value in a cell until that value changes

I don't know if this is possible but here goes.

I have exported data into excel and in column D there are identifiers i.e.
"IN" & "OUT". In column A there are items that fit into these categories,
but the items switch back and forth between the two. There will be 20 items
that are "IN" with the "IN" appearing in just the first items row and doesn't
change until there are "OUT" items. This switches back and forth. Is there a
formula that can copy the identifier on every row until it changes, so that
every row has a label of IN or OUT?

Am i making sense? Please help!
--
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default formula for copying a value in a cell until that value changes

Eric D,

Here is an option that I have used mutliple times in importing data.
Especially from PivotTables.

=IF(A2="",B1,A2)

Basically, place this formula in a new column, and change the cell
references as needed. My example is as such:

SEL <New Column
a a
a
a
a
a
a
b b
b
b
b

Hope this helps.

--
--Thomas [PBD]
Working hard to make working easy.


"Eric D" wrote:

I don't know if this is possible but here goes.

I have exported data into excel and in column D there are identifiers i.e.
"IN" & "OUT". In column A there are items that fit into these categories,
but the items switch back and forth between the two. There will be 20 items
that are "IN" with the "IN" appearing in just the first items row and doesn't
change until there are "OUT" items. This switches back and forth. Is there a
formula that can copy the identifier on every row until it changes, so that
every row has a label of IN or OUT?

Am i making sense? Please help!
--
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default formula for copying a value in a cell until that value changes

this is not working for me. the identifiers i need switch back and forth, so
how do you get it to change back and forth?
--
Eric


"Thomas [PBD]" wrote:

Eric D,

Here is an option that I have used mutliple times in importing data.
Especially from PivotTables.

=IF(A2="",B1,A2)

Basically, place this formula in a new column, and change the cell
references as needed. My example is as such:

SEL <New Column
a a
a
a
a
a
a
b b
b
b
b

Hope this helps.

--
--Thomas [PBD]
Working hard to make working easy.


"Eric D" wrote:

I don't know if this is possible but here goes.

I have exported data into excel and in column D there are identifiers i.e.
"IN" & "OUT". In column A there are items that fit into these categories,
but the items switch back and forth between the two. There will be 20 items
that are "IN" with the "IN" appearing in just the first items row and doesn't
change until there are "OUT" items. This switches back and forth. Is there a
formula that can copy the identifier on every row until it changes, so that
every row has a label of IN or OUT?

Am i making sense? Please help!
--
Eric

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 154
Default formula for copying a value in a cell until that value changes

Eric D,

You mean to say that your data comes in as:
a in

out

b in

out

and you would like it to become:
a in
a in
a out
a out
b in
b in
b out

if not, I might need some clarification, an exact example could help.
--
--Thomas [PBD]
Working hard to make working easy.


"Eric D" wrote:

this is not working for me. the identifiers i need switch back and forth, so
how do you get it to change back and forth?
--
Eric


"Thomas [PBD]" wrote:

Eric D,

Here is an option that I have used mutliple times in importing data.
Especially from PivotTables.

=IF(A2="",B1,A2)

Basically, place this formula in a new column, and change the cell
references as needed. My example is as such:

SEL <New Column
a a
a
a
a
a
a
b b
b
b
b

Hope this helps.

--
--Thomas [PBD]
Working hard to make working easy.


"Eric D" wrote:

I don't know if this is possible but here goes.

I have exported data into excel and in column D there are identifiers i.e.
"IN" & "OUT". In column A there are items that fit into these categories,
but the items switch back and forth between the two. There will be 20 items
that are "IN" with the "IN" appearing in just the first items row and doesn't
change until there are "OUT" items. This switches back and forth. Is there a
formula that can copy the identifier on every row until it changes, so that
every row has a label of IN or OUT?

Am i making sense? Please help!
--
Eric

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 50
Default formula for copying a value in a cell until that value changes

Nevermind I think i can work with this ... i had the formula wrong ... thanks
a bunch!
--
Eric


"Thomas [PBD]" wrote:

Eric D,

Here is an option that I have used mutliple times in importing data.
Especially from PivotTables.

=IF(A2="",B1,A2)

Basically, place this formula in a new column, and change the cell
references as needed. My example is as such:

SEL <New Column
a a
a
a
a
a
a
b b
b
b
b

Hope this helps.

--
--Thomas [PBD]
Working hard to make working easy.


"Eric D" wrote:

I don't know if this is possible but here goes.

I have exported data into excel and in column D there are identifiers i.e.
"IN" & "OUT". In column A there are items that fit into these categories,
but the items switch back and forth between the two. There will be 20 items
that are "IN" with the "IN" appearing in just the first items row and doesn't
change until there are "OUT" items. This switches back and forth. Is there a
formula that can copy the identifier on every row until it changes, so that
every row has a label of IN or OUT?

Am i making sense? Please help!
--
Eric



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
copying cell formula newbie. Thank You No Name Excel Discussion (Misc queries) 0 June 10th 07 10:53 PM
Copying formula from one cell to another with absolute value in it bk_412 Excel Discussion (Misc queries) 1 January 21st 07 01:05 PM
copying formula to another cell dmack Excel Discussion (Misc queries) 4 January 11th 07 05:33 PM
How do I copy the value from a cell without copying the formula? Captain Excel Worksheet Functions 2 May 8th 06 01:05 PM
How do I keep one cell constant in a formula even when copying excel rookie Excel Discussion (Misc queries) 2 April 26th 06 02:23 PM


All times are GMT +1. The time now is 05:42 PM.

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

About Us

"It's about Microsoft Excel"