Returning Specific Data using IF statements

chrono2483

Board Regular
Joined
Aug 23, 2014
Messages
164
Office Version
  1. 2016
Hello,

I have a sheet that contains columns of merged cells that have dates, Sunday to Saturday, as the heading. Under which are 2 columns (b/c the date cell is merged), that contain information. Column 1 and 2. Column 1 is the side header for the data in column 2:

|Sunday, Nov 30|
|Service Level| 35%|

On a separate sheet, I want to be able to include a formula, so that it will recognize what day it is today, and pull data from the cell. I tried using "IF" statements, however it didn't work, as it kept giving me the data for Sunday, even it I reference today as "Dec 2".

This is my formula:

=IF('Notes'!A1:B1='HOME'!A1:B1,'HOME'B2,('Notes'!A1:B1='HOME'!D1:E1,'HOME'!E2,IF.....) [and so on until Saturday]

Were 'Notes'!A1:B1 is today's date in the new sheet [=today()]
'HOME'!A1:B1 is the date from original sheet
'HOME'B2/'HOME'!E2 are the data that I want returned

I hope this is clear, if not I can clarify.

Thank you!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
This should give you the data you want, you can then use it in any calculations you need
Excel Workbook
ABCDEFGHIJ
1Sun, Nov 30, 2014Mon, Dec 01, 2014Tue, Dec 02, 2014Wed, Dec 03, 2014Thu, Dec 04, 2014
2SL334%36.00%38.00%40.00%42.00%
3
4
5
6
7
830/11/20140.34
91/12/20140.36
102/12/20140.38
113/12/20140.4
Sheet1
 
Upvote 0
Thank you for your response. I've tried that, as well as variations if index/match, IFs statements, as well as v and hlookup, but so far that doesn't seem to do the trick. Am I missing something?



Here is my sheet 1:


A
B
C
D
E
F
G
H
1
Sunday Nov 30, 2014Monday Dec 01, 2014Tuesday Dec 02, 2014
2
SL Forecast40%SL Forecast38%SL Forecast45%
3
Calls14244Calls30364Calls24777

<tbody>
</tbody>



Here is my sheet 2:

A
B
1
Wednesday Dec 03, 2014
2
HOME
3
SL Forecast
4
Calls
<colgroup><col width="64" style="width: 48pt;"> <col width="137" style="width: 103pt; mso-width-source: userset; mso-width-alt: 5010;"> <col width="64" style="width: 48pt;"> <tbody> </tbody>


What I want to do is use sheet 2, and have a formula that will recognize what day it is (based on the =today() formula in Sheet2!A1), and with that find that date in sheet one, and return the particular data for that day (the SL and CV).

Can the index/match formula do this? Is there such a thing as combining IF statements with index/match, so that I could do (IF today's date matches the date in sheet 1, return that particular data)?

Thank you as always!
 
Upvote 0
This will do it. My dates are UK style, but that is only formatting.
Excel Workbook
BCDEFGHI
12/12/20143/12/20144/12/2014
2SL Forecast40%SL Forecast38%SL Forecast45%
3Calls14244Calls30364Calls24777
Sheet1
Excel Workbook
BC
14/12/2014
2HOME
3SL Forecast0.45
4Calls24777
Sheet2
 
Upvote 0

Forum statistics

Threads
1,217,461
Messages
6,136,793
Members
450,025
Latest member
Beginner52

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