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 / Number fields from Exc...
Power Automate
Answered

Number fields from Excel showing as Date in array

(0) ShareShare
ReportReport
Posted on by

There are two columns of data in my attachment where the values displayed appear as dates but should be numbers.  The values in the Excel table are set to Number format, just like the preceding columns on the attachment.  The array is populated in the flow via the Append to array variable as the action.

JWessel_0-1686338413174.png

Any thoughts on why these last two would show up as date values and not integer numbers?

Categories:
I have the same question (0)
  • jiwhite Profile Picture
    500 on at

    Please post an anonymized version of your flow so that we can see how your data is being processed.  The attached spreadsheet has date text in the columns and is formatted as General, not Number, so it should be carried through as dates.

  • JWessel Profile Picture
    on at

    Hi jiwhite.  Thanks for quick reply.  The attached spreadsheet is the flow output.  Apologies for the ignorance, but how does one create an anonymized version of the flow?

  • JWessel Profile Picture
    on at

    sorry, I misunderstood and believe you mean anonymized data and I will do that.

  • JWessel Profile Picture
    on at

    jiwhite, the source data for all of the columns in the Redeemed Report attachment for "Twin Mattress through the "Pack-N-Play" column are all formatted as number.  The report itself, a .csv output, also has columns G through N as General format and those numbers show up fine.  It only seems to be the numbers in columns M and N on the output.  For example on the output row with the name of Timaya Harris (Excel row 32), the source data for the Crib column and Pack-N-Play column contains the value of 0 (zero) and is a number format field.

  • JWessel Profile Picture
    on at

    Attaching new source file, anonymizing data.

     

  • JWessel Profile Picture
    on at

    flow steps

    1.

    JWessel_0-1686509706898.png

    2.

    JWessel_1-1686509739047.png

    3.

    JWessel_2-1686509763788.png

    4.

    JWessel_3-1686509846362.png

    Group 1

    condition 1 = Redeemed y or N = y

    condition 2 = if(empty(item()?['Redeemed Date']),1,0) = 0

    Group 2

    condition 1 = greaterOrEquals(addDays('1899-12-30',int(item()?['Redeemed Date']),'yyyy-MM-dd'),subtractFromTime(convertFromUTC(utcNow(),'Eastern Standard Time'),1,'Month','yyyy-MM-dd'))

    condition 2 = lessOrEquals(addDays('1899-12-30',int(item()?['Redeemed Date']),'yyyy-MM-dd'),subtractFromTime(startOfMonth(convertFromUtc(utcNow(),'Eastern Standard Time')),1,'Day','yyyy-MM-dd')) is TRUE

     

    JWessel_4-1686510035669.png

     

    5.

    Compose with expression = sort(variables('HtmlTable'),'Conference')

     

    6. Create csv table with Outputs from Compose step

    JWessel_5-1686510142648.png

    7. Last step is to send email V2

     

  • jiwhite Profile Picture
    500 on at

    Anonymizing the flow just means black out any portions of urls, labels, etc., that reference personal or corporate information that you don't want revealed.

  • Verified answer
    jiwhite Profile Picture
    500 on at

    There are dates in the columns a couple of columns over.  Are you sure that you've defined the output from the Office Script correctly?  My guess for why you're getting dates sent back would be that you accidentally sent the wrong columns back from the spreadsheet. Can you share your Office Script?

  • JWessel Profile Picture
    on at

    I don't have an office script.  Source is just a table (Table2) defined on one sheet of a workbook and identified in the "List rows present on a table" step.

  • JWessel Profile Picture
    on at

    Well, I'm not sure exactly what happened but a flow that failed 2 hours ago now works.  I wish I knew what it was in the data that changed because the flow didn't change.  Maybe it took some time to refresh the file on one drive or something.  Anyway, I'll mark as accepted at this point and hopefully figure out exactly what it was that changed through versioning or something. 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard