Return Last Value In A Row

raymaster98

Board Regular
Joined
Oct 28, 2009
Messages
212
Using Excel 2003:

I have 2 worksheets.

In worksheet "No Show Data (Current Year)" C29:N29, I have a row of numerical values. There are 12 of them (one for each month). Since it is the current year, not all of them currently have values. B29:N29 contains the months of the year.

In worksheet "No Show Data (Previous Year)" C29:N29, I have another row of numerical values. There are 12 of them (one for each month). Since it is the previous year, they all have values. B29:N29 contains the months of the year.

Currently, Feb is the last month in which there is a value in "No Show Data (Current Year)" C29:N29.

I want to compare the last numerical value of "No Show Data (Current Year)" C29:N29 with the same month from "No Show Data (Previous Year)" C29:N29.

Example:

In "No Show Data (Current Year)" C29:N29, the current values are:

Oct Nov Dec Jan Feb March April May June July Aug Sep
6 6 5 9 16

In "No Show Data (Previous Year)" C29:N29, the current values are:

Oct Nov Dec Jan Feb March April May June July Aug Sep
4 7 8 2 10 3 2 6 8 3 5 7

Since Feb is the most current value, the correct formula would return 10 since it is the value of the same month from the previous year.

I hope this makes sense and I appreciate any help. Thanks, Kenny
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Try...

=LOOKUP(9.99999999999999E+307,'No Show Data (Current Year)'!C29:N29,'No Show Data (Previous Year)'!C29:N29)
 
Upvote 0
Maybe

=INDEX('No Show Data (Previous Year)'!B29:M29,,COUNT('No Show Data (Current Year)'!B29:M29))
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,472
Members
452,915
Latest member
hannnahheileen

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