Weeknum with text before

UndwaterExcelWeaver

New Member
Joined
Mar 2, 2019
Messages
38
Office Version
  1. 365
Platform
  1. Windows
I am trying to do a simple formula to add the word "Week" before the weeknum function but I am getting a #Value error for some reason. I am following the instructions exactly that I read on this so I'm not sure what the issue is. I achieved my goal visually by changing the number format to include the word "week" but that does not function correctly when matching that cell to that in another workbook, presumedly because it is really only seeing the week number and not the text that I added. Instead, here is the formula I'm using, where cell D1 contains the date:

=CONCATENATE("Week ",WEEKNUM(D1)+1)

The label "week ##" is in another sheet and I'm using that text as a reference point to pull in the correct data into this sheet, so I need the two sheets to have identical text while also updating automatically based on the date.

Thanks

EDIT: I have also tried the simpler ="Week " &weeknum(D1)+1. This does not work either.
 
Last edited by a moderator:
Can you share with XL2BB or upload the file and share the link? (Or a copy with only the errors?)
 
Upvote 0

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Have you tried the formulas in a new workbook? Just paste this in a new workbook and see what happens? If it works, then paste it into a new sheet in your current workbook. If that works then I think it is something with your data (or system environment) and not excel.

Cell Formulas
RangeFormula
G1G1=CONCATENATE("Week ",WEEKNUM(D1)+1)
F3F3="D1 WeekNum:"
G3G3=WEEKNUM(D1)
F4F4="D1 WeekNum + 1"
G4G4=WEEKNUM(D1)+1
F5F5="F1 WeekNum:"
G5G5=WEEKNUM(F1)
F7F7="word week & WeekNum D1"
G7:G9G7=$G$6&G3
F8F8="word week & WeekNum D1 + 1"
F9F9="word week & WeekNum F1"
 
Upvote 0
If you need to keep the "Transition formula evaluation" checked, then you could put
Excel Formula:
=weeknum(f1)+1
in G1 & in another cell
Excel Formula:
=CONCAT("week ",G1)
 
Upvote 0
I am curious what these other formulas that break look like.
Could you post a few?
Maybe it is a quick fix, if we know what we are dealing with.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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