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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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,692 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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard