Formula to return offset value based on cell location of sech for text

shasty

New Member
Joined
Aug 28, 2017
Messages
1
Good morning,

I have a calendar in Excel where each month is on a new tab and am trying to populate text based on multiple conditions:

The location of the value that equals 7 days before the date in the referenced cell (EX D18- 7 days = D9)

Then using that location display the value that is offset from that location -7 rows.

**Basic idea = Look specific text in the cell 7 rows above the cell that contains a date 7 days before displayed date.

Part of the problem is that a few days of each month are on that spreadsheet, so if I am trying to reference a cell 7 days before 8/1 I need to look at the previous worksheet.
CDEFGHI
1SunMonTueWedThurFriSat
2 Load 2
3
4
5
6
7
8
907/3007/3108/0108/0208/0308/0408/05
10 Load 3
11
12
13
14
15
16
17
1808/0608/0708/0808/0908/1008/1108/12
19 Load 4
20
21
22
23
24
25
26
2708/1308/1408/1508/1608/1708/1808/19

<colgroup><col><col><col span="2"><col span="3"><col></colgroup><tbody>
</tbody>


This is the current formula I am using but it is specific cells (there are other conditionals) and I would like to not have to adjust every year as the dates move.

=IF(OR(WEEKDAY(D18)=1,WEEKDAY(D18)=7),"",IF(AND(WEEKDAY(D18)=2,ISNUMBER(SEARCH("Load",JUL!I38))),CONCATENATE("Calculate ",(MID(JUL!I38,FIND("Load",JUL!I38)+5,LEN(JUL!I38)))),IF(AND(WEEKDAY(D18)=2,ISNUMBER(SEARCH("Load",C2))),CONCATENATE("Calculate ",(MID(C2,FIND("Load",C2)+5,LEN(C2)))),IF(ISNUMBER(SEARCH("Load",D2)),CONCATENATE("Calculate ",(MID(D2,FIND("Load",D2)+5,LEN(D2)))),""))))
 

Some videos you may like

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Watch MrExcel Video

Forum statistics

Threads
1,128,092
Messages
5,628,628
Members
416,329
Latest member
phxdan79

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