Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Excel import issue once use =RAND() in Excel #3940

Closed
1 task done
cdmathukiya opened this issue May 26, 2023 · 4 comments
Closed
1 task done

[Bug]: Excel import issue once use =RAND() in Excel #3940

cdmathukiya opened this issue May 26, 2023 · 4 comments

Comments

@cdmathukiya
Copy link

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

3.1.48

What version of Laravel are you using?

9.26.1

What version of PHP are you using?

8.1

Describe your issue

I have create one excel with test data of 64k+ records.
In that I have generate two column latitude and longitude and fill it with =RAND() function in Excel
image
Now, I am trying to import in mysql via Laravel and this packge.
I create new random value for both column.
image

I think issue is because of WithCalculatedFormulas

image

How can the issue be reproduced?

To reproduce this issue add =RAND() Function in any of column and get that data in laravel array.
image

What should be the expected behaviour?

same value generated in excel should be getting in array when we read excel
image
same value shown in image should be getting in below array

$rows = Excel::toArray(new StoreImport(), $request->file('file'));

@stale stale bot added the stale label Jul 25, 2023
@stale
Copy link

stale bot commented Jul 27, 2023

This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions.

@stale stale bot closed this as completed Jul 27, 2023
@cdmathukiya
Copy link
Author

found any solutin in this case?

@patrickbrouwers
Copy link
Member

I don't think you can use RAND() in that way

@cdmathukiya
Copy link
Author

I am using it to create test excell file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants