web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Read specific cell in ...
Power Automate
Unanswered

Read specific cell in Excel

(0) ShareShare
ReportReport
Posted on by

Hello community,

Unfortunately, I can't solve the following problem with PowerAutomate:

I would like to read a specific cell with a single number from an Excel spreadsheet and then proceed with a condition based on that value:

If the value is greater than 0, it should be reduced by 1 and certain actions should be continued. If the value is 0, it should stay at 0 and something else should happen.

Could someone give me a hint how to do this in detail?

According to my understanding:

List Columns

Apply Filter Array to get the single value from the single cell (how exactly does the Filter Array command need to be to identify the single cell?).

Then a condition based on the FilterArray output?

About Help I would be happy!

Categories:
I have the same question (0)
  • Rhiassuring Profile Picture
    8,690 Moderator on at

    So this is a single cell that you need to change?  Like, for example, you want to get data from Excel in cell C3 or E6 or something like that? Not a value within a table, in a row?

    I don't think you'll be able to do this with the Excel actions in Power Automate. If you have a license, you could use Power Automate Desktop which has a different set of Excel actions, that WILL be able to collect data from a specific cell.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @wemdens ,

     

    If you didn't create a table in excel and you had the license to use excel script, I made a sample for you.

    vxiaochenmsft_0-1675393898875.png

    vxiaochenmsft_1-1675393978510.png

    function main(workbook: ExcelScript.Workbook) {
    	let selectedSheet = workbook.getActiveWorksheet();
    	// Set range B3 on selectedSheet
    	let tempVar = selectedSheet.getRange("B3").getValue();
    	let tempVar2: number = tempVar as number;
    	if(tempVar2 > 0) {
    		selectedSheet.getRange("B3").setValue(tempVar2 - 1);
    		return tempVar2
    	} else {
    		return 0
    	}
    }

     

    Best Regards,

    Wearsky

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard