change values in a column

D

dmack

i am looking for a way to be able to drag the information in a cell down a
column keeping some information constant while changing others. For example:
=IF($B$2=4,"4",IF($C$2=4,"4"))
=IF($B$2=5,"5",IF($C$2=5,"5"))
I would like to be able to have the following cells continue with the number
sequence
=IF($B$2=6,"6",IF($C$2=6,"6"))
=IF($B$2=7,"7",IF($C$2=7,"7")) etc.
thx
 
P

Pete_UK

Try it like this:

=IF($B$2=ROW(A4),""&ROW(A4),IF($C$2=ROW(A4),""&ROW(A4)))

and copy it down. You do not specify what to do if neither B2 nor C2 =
4 (in your first formula).

Hope this helps.

Pete
 
M

Max

Try this in the starting cell, say in D2:
=IF($B$2=ROWS($1:1)+2,ROWS($1:1)+2,IF($C$2=ROWS($1:1)+2,ROWS($1:1)+2,""))
Copy down
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top