Hi @SJ
Please follow the below steps-
Step1: Get the range of used values of your sheet using this https://graph.microsoft.com/v1.0/me/drives/{drive-id}/items/{item-id}/workbook/worksheets/{sheet-id}/usedRange
Graph API reference. In response you will find "address": "Sheet1!A1:F14" property which indicates smallest range that encompasses any cells that have a value or formatting assigned to them. Use this to find last value of your column and put that in address in next step.
Step2: To get values from worksheet of particular column use
GET https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/worksheets/{sheet-id}/range(address='A1:A14')?$select=values
Graph API. Please refer to this documentation for more details.
If you want to get contents of column in excel for particular table you can use this GET https://graph.microsoft.com/v1.0/me/drives/{drive-id}/items/{item-id}/workbook/worksheets/{sheet-id}/tables/{table-id}/columns/{column-id}
Graph API for more details please refer to this documentation.
In a response you will get all the content of column use that(or usedRange) to identify row number, after that you can use this
GET https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/worksheets/{sheet-id}/range(address='A7:F7')
Graph API to get the result.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.