엑셀 x 축 2개 - egsel x chug 2gae

엑셀에서 서로 다른 축(기본축, 보조축을)을 이용하여 두 개의 막대 그래프를 그릴 수 있다. 하지만 일반적인 방법으로 서로 다른 축을 가진 그래프를 그리게 되면 아래 <경우1>와 같이 막대그래프가 겹쳐버린다. 

경우 1) 막대 그래프 두 개 그리기 (잘못된 방법)

- 그래프 그리기 -> 몸무게 항목의 보조축 설정 -> 그래프 겹침

엑셀 x 축 2개 - egsel x chug 2gae

따라서 표를 기존 방법과는 다르게 그린 다음, 그래프를 그려야 한다. 아래의 경우2의 순서를 따라 그래프를 그리게 되면 서로 다른 축(기본축, 보조축)을 가진 막대그래프를 겹치지 않고 그릴 수 있다. 

경우 2) 서로 다른 축을 가진 막대 그래드 두 개 그리기 

1. 공백을 가진 표 만들기 

키와 몸무게의 기본 열 사이에 빈 값을 가진 '가', '나'을 삽입하여 다시 그래프를 그린다. 

2. 보조축 만들기 

키와 몸무게 항목의 값의 범위가 다르므로, 그래프에서 몸무게(보라색)의 막대그래프를 클릭하고 데이터 계열서식을 클릭한 다음, 보조축을 선택한다. 

보조축을 선택하면, 아래와 같이 그래프가 그려진다. 

3. 열 숨기기 

기존 표에서 빈값을 가진 '가' 와 '나' 열을 보이기 않게 하려면 상위 C, D를 드래그 한 다음, 오른쪽 마우스 키를 눌러 아래와 같이 숨기기를 선택한다. 

숨기기를 선택하면 그래프가 다시 완전히 겹쳐지는 현상이 발생하기 때문에, 다른 조치를 취해주어야 한다.

 

<span style="font-size:11pt"><b>4. 숨겨진 행 및 열 데이터 표시하기</b>&nbsp;</span><p></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt">그래프에 마우스를 놓고 오른쪽 키를 눌러 '데이터 선택'을 클릭한다.&nbsp;</span></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/250C9647559348A422?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile23.uf.tistory.com%2Fimage%2F250C9647559348A4221DC6" src="https://t1.daumcdn.net/cfile/tistory/250C9647559348A422" style="cursor:pointer;max-width:100%;height:auto" width="600" height="304" filename="8. 데이터 선택.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt">&nbsp;</span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt">데이터 원본 선택에서 '숨겨진 셀/빈 셀'을 클릭 -&gt; '숨겨진 행 및 열 데이터 표시' 클릭 -&gt;</span><span style="font-size:11pt">&nbsp;확인&nbsp;</span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/244FF9345593493A32?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile6.uf.tistory.com%2Fimage%2F244FF9345593493A324C33" src="https://t1.daumcdn.net/cfile/tistory/244FF9345593493A32" style="cursor:pointer;max-width:100%;height:auto" width="600" height="195" filename="9. 숨겨진 빈 셀 채우기.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/273F283D5593498104?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile9.uf.tistory.com%2Fimage%2F273F283D55934981042F8E" src="https://t1.daumcdn.net/cfile/tistory/273F283D5593498104" style="cursor:pointer;max-width:100%;height:auto" width="600" height="234" filename="10. 숨겨진 행 및 열에 데이터 표시.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/232DB746559349B123?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile5.uf.tistory.com%2Fimage%2F232DB746559349B123781E" src="https://t1.daumcdn.net/cfile/tistory/232DB746559349B123" style="cursor:pointer;max-width:100%;height:auto" width="600" height="220" filename="10. 데이터 변경 및 확인.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/2769E042559349BF2F?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile24.uf.tistory.com%2Fimage%2F2769E042559349BF2FAB83" src="https://t1.daumcdn.net/cfile/tistory/2769E042559349BF2F" style="cursor:pointer;max-width:100%;height:auto" width="600" height="224" filename="11. 데이터 원본 선택 확인.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt"><br></span></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt"><b>5. 막대 그래프 간격 너비 바꾸기&nbsp;</b></span></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt">숨격진 셀은 표시하면, 그래프가 다시 보이긴 하지만 아직 겹쳐져 있다. 따라서 아래와 같이 막대 그래프의 간격 너비를 조절하여 그래프를 겹치지 않게 할 수 있다.&nbsp;</span></p> &nbsp;<center> <script async>  <br><p></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt">데이터 계열 서식 클릭 -&gt; 간격너비 란에서 너비 조정 (150 </span><span style="font-size:11pt">-&gt; 379)</span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/274C473D55934A3539?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile6.uf.tistory.com%2Fimage%2F274C473D55934A35396E7B" src="https://t1.daumcdn.net/cfile/tistory/274C473D55934A3539" style="cursor:pointer;max-width:100%;height:auto" width="600" height="339" filename="12. 데이터 계열 서식.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="line-height:2;text-align:justify"><br></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/21541C4555934A4521?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile7.uf.tistory.com%2Fimage%2F21541C4555934A4521FA15" src="https://t1.daumcdn.net/cfile/tistory/21541C4555934A4521" style="cursor:pointer;max-width:100%;height:auto" width="600" height="267" filename="13. 간격너비 조절.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="line-height:2;text-align:justify"><br></p> <p style="text-align:justify;clear:none;float:none;line-height:2"><span class="imageblock" style="display:inline-block;width:600px;height:auto;max-width:100%"><span data-url="https://t1.daumcdn.net/cfile/tistory/2701723E55934A5935?download" data-lightbox="lightbox"><img srcset="https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&fname=http%3A%2F%2Fcfile26.uf.tistory.com%2Fimage%2F2701723E55934A59354FAA" src="https://t1.daumcdn.net/cfile/tistory/2701723E55934A5935" style="cursor:pointer;max-width:100%;height:auto" width="600" height="230" filename="14. 간격너비 변경후.jpg" filemime="image/jpeg"></span></span></p> <p style="line-height:2;text-align:justify"><br></p> <p style="line-height:2;text-align:justify"><span style="font-size:11pt"><br></span></p> <center> <script async>

6. 항목란에서 빈값을 가진 항목 삭제

막대 그래프에서 보이지는 않지만 빈값을 가진 '가'와 '나와' 범례에 존재하기 때문에, 이것을 삭제 해주어야 한다. 

'가' 항목 클릭 --> 삭제 클릭

7. 서로 다른 축을 가진 막대 그래프 완성!

Soli Deo Gloria