Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Excel: how to return data of the last weekday?

| Column A | Column B |
| 14/4     | 1        |
| 15/4     | 100      |
| 16/4     | 70       |
| 17/4     | 80       |

What is the formula I could use to extract the data (column B) of previous weekday please?
So if I open the file on monday (17 april), formula should return 1. If I open the file on tuesday (18 apr), formula should return 80.

Thanks in advance for your help.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

With your data in A1:B6 use the formula =XLOOKUP(WORKDAY(TODAY(),-1),$A$1:$A$6,$B$1:$B$6)

enter image description here

WORKDAY

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading