custom fields anchor points php

What you wanna do is use the name attribute.

<a href="#my-anchor">Link to the anchor</a>

<p name="my-anchor">This is the anchor</p>

Also, I would use something consistent, like the post/page slug to be able to link to each section.

<?php global $post; ?>

<div class="guide-section" name="<?php echo $post->post_name; ?>">

And then for your list use the slug as well. Repeat the while-loop:

<?php if( $bedGuideRight_query->have_posts() ){
   while( $bedGuideRight_query->have_posts() ){
     $bedGuideRight_query->the_post(); ?>
     <a class="list-group-item" href="#<?php echo $post->post_name; ?>"><?php the_title(); ?></a>
   <?php }
} ?>