구글 시트 for each row 관련된 질문입니다

for each row 기능을 사용해서
CurrentRow의 "A"열의 string 데이터를
CurrentRow의 "I"열에 해당하는 셀에 하나하나 옮겨적으려고 합니다.

데이터를 변수로 읽어오는건 성공했는데,
어떤액티비티를 이용해서야 CurrentRow의 “I” 열에 적을 수 있을까요?

write cell 액티비티는 실패했습니다.
셀위치에다가 CurrentRow.Item(“I”).ToString 적으니까
Write Cell: Column ‘I’ does not belong to table .
라고 뜨면서 실패합니다.
캡처

제가 초보라 참… ㅎㅎ 한참 헤메다가 질문 조심스럽게 올립니다.
잘 부탁드립니다.

HI @hoseongwon

In Cell I1 what header is there in the excel?

You need to use that cell value manually like
Lets say your cell value is “Status”

You need to use like this inside for each row in datatable

Dont use Write cell instead use Assign activity
CurrentRow(“Status”) in left side
“You value” in right side.

If you dont have no data in the Cell I1 u can try like below

CurrentRow(8) in left side
“You value” in right side.

Regards
Sudharsan

Atlast after the for each row

use write range and then write the datatable in your gsheet

Thank you for your reply.
but assign does not write to Google sheet at all…
and write range does not work. because I got the text as string.Not datatable.

@hoseongwon

That assign will add your String value to the corresponding field(i.e., Coulmn I) in the datatable

and if you use Write range and write that datatable in the sheet it will write the whole data at once.

That is other way with my need.
Is there any way to put the string one by one? not put whole range at once…

anyway, Thank you so much to suggest that way. Thank you :slight_smile:

CurrentRow.Item(“”)에서 ""사이에 들어가야하는 값은 열 이름입니다.
열 이름이 아니라 열 번호를 입력하시려면 "I"대신 8을 넣으셔야합니다.(0부터 시작)