Week Ending Date based off cell with formula

pup33pawz

New Member
Joined
Jun 2, 2014
Messages
21
Hello!

I am trying to formulate a week ending date based off of a cell that contains a formula. For example: C1 contains =IF(B1 = "Sara",TODAY(),""). This returns today's date. I would like D1 to calculate the week ending date based off of the date generated on C1. Is this possible? I've tried =(7-WEEKDAY(C1,11))+C1 but that returns #Value error
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Try this for Sunday =(7-WEEKDAY(C1,2))+C1
 
Upvote 0
B1: Sara
C1: =IF(B1 = "Sara",TODAY (),"")
D1: Need week ending formula based on date of C1

=(7-WEEKDAY(C1,2))+C1 returns #Value error, I think because C1 has formula in it
 
Upvote 0
I have
B1: sara
C1: =IF(B1 = "Sara",TODAY(),"")
D1: =(7-WEEKDAY(C1,2))+C1

and that works until B1 is blank

problem with this is you are limited to sara, and next week it will still report today being on that week
 
Upvote 0
B1: Sara
C1: =IF(B1 = "Sara",TODAY (),"")
D1: Need week ending formula based on date of C1

=(7-WEEKDAY(C1,2))+C1 returns #Value error, I think because C1 has formula in it

The only reasonable explaination for that formula to return #Value! is if B1 does NOT = "Sara"
If B1 does NOT = "Sara", then C1 = ""
And Weedkay("",2) = #Value! (it expects a date value, not a text string "")

Check B1 for extra spaces, like "Sara " or " Sara" instead of "Sara"

What does this return
=B1="Sara"
?
 
Last edited:
Upvote 0
we could suggest =IF(TRIM(B1) = "Sara",TODAY(),"") to allow for spaces
 
Upvote 0
Thank you! I realized, #Value error is showing in cases where column B is blank. The formula you sent works :) How do I have blank return if Column B is blank?
 
Upvote 0
you mean like =IF(B1<>"",(7-WEEKDAY(C1,2))+C1,"BlAnK")
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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