Formula query

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi people,

What I am trying to do is this, this is an example so not the exact wording:

Cell A4 contains a week number, example 40.
Entering forumla into cell A6: If cell A1 equals "A" and cell A2 equals "B", convert cell A4 into week number date, i.e week 40 = 28/09/2020.

is there a formula that can do this please?

thank you advance.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,211
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
How about
=IF(AND(A1="A",A2="B"),DATE(YEAR(TODAY()),1,-2)-WEEKDAY(DATE(YEAR(TODAY()),1,3))+A4*7,"")
 

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hi & welcome to MrExcel.
How about
=IF(AND(A1="A",A2="B"),DATE(YEAR(TODAY()),1,-2)-WEEKDAY(DATE(YEAR(TODAY()),1,3))+A4*7,"")
Hi,

thanks for your help. Could I add into the formula if A4 = blank, then A6 = blank?

Thank you.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,211
Office Version
  1. 365
Platform
  1. Windows
How about
=IF(A4="","",IF(AND(A1="A",A2="B"),DATE(YEAR(TODAY()),1,-2)-WEEKDAY(DATE(YEAR(TODAY()),1,3))+A4*7,""))
 

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile

ADVERTISEMENT

How about
=IF(A4="","",IF(AND(A1="A",A2="B"),DATE(YEAR(TODAY()),1,-2)-WEEKDAY(DATE(YEAR(TODAY()),1,3))+A4*7,""))
Brilliant, thank you.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,211
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

james_simpson1998

New Member
Joined
Jul 30, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Now what if I wanted to take it a step further...

what if i had a separate table on another sheet which told me, for example transit times in weeks. Lets use for example 4 weeks total transit time.

And what I would like to do is to insert a week number into cell M92 for example, and total transit time for this example is 4 weeks which is what is on the table on the other sheet. So, M92 = 35 (for example), i would like P92 to pull through the date of week 35, O92 to pull through P92-4 total weeks from the other table? Does this make sense?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,211
Office Version
  1. 365
Platform
  1. Windows
As this is now a totally different question, you will need to start a new thread.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,012
Messages
5,834,916
Members
430,326
Latest member
tomwax46

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top