# IF statement across multiple sheets

#### jaylundquist

##### New Member
Hello,
I am trying to create an IF statement, or another formula if that's better, that would calculate improvement across multiple months. We'll use pushups as the item we are tracking. I need to make a formula that will show a persons improvement for the rest of the year with the baseline being December. Say a person did 20 pushups in December and then on the next sheet for January they did 25 pushups and February they did 30. however in March they regressed and only did 15 pushups. I need the main sheet to be able to sort through which months have been filled in and subtract the most recent entry from December. so if only January has been filled in the cell will say 5. if it is now February the cell will say 10, and once March is filled in it will say -5 on the tracking cell. I feel like this should be fairly simple however I haven't been able to get it to work on my own and have been unable to find any examples.
Thank you in advance for any help.

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

#### jasonb75

##### Well-known Member
Assuming that the number of pushups is in B2 of each sheet, you would need to use something like
Excel Formula:
``=IF(March!B2<>"",March!B2,IF(February!B2<>"",February!B2,IF(January!B2<>"",January!B2)))-December!B2``
Unfortunately there is no practical alternative to the long formula method for what you want to do.

Replies
2
Views
213
Replies
6
Views
85
Replies
13
Views
159
Replies
1
Views
68
Replies
1
Views
97

1,127,342
Messages
5,624,114
Members
416,012
Latest member
rockermom59

### 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.

### Which adblocker are you using?

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

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