Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Add two cells if there are two rows [closed]

$
0
0

in my example you can see a table with initials (left) followed by different times. At some rows, as you can see, there is a row with the initials followed by times and there is a row beneath without initials but with times. This row belongs to the row above with the initials. I've colored the rows yellow.

What i want to do, is replace the row above with the end-time beneath. As an example:

BOB | 12:00 - 17:00

------17:00 - 20:00

I want to change this to 12:00 - 20:00 (on one row)

But i don't know how i can check with VBA if there are 2 rows for one person, and replace the end-time on row one with the end-time on row 2.

Is there anyone who knows how this can be done?


Viewing all articles
Browse latest Browse all 88854


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>