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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,"")
 
Upvote 0
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.
 
Upvote 0
How about
=IF(A4="","",IF(AND(A1="A",A2="B"),DATE(YEAR(TODAY()),1,-2)-WEEKDAY(DATE(YEAR(TODAY()),1,3))+A4*7,""))
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
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?
 
Upvote 0
As this is now a totally different question, you will need to start a new thread.
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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
Back
Top