Advanced Excel Question

mikevic

Board Regular
Joined
Aug 31, 2011
Messages
50
Hey People,

I am trying to write a formula that will look at a table that contains 12 monthly columns (monthly data). As the year goes by the current month will fill in that months data...so except for December there will be columns blank (without data). This formula needs to be able to look at the columns on the left and determine which month the data starts. There are multiple rows, sometimes no data is available for a certain row, so this formula has to be able to determine (based upon all rows being greater than zero) where to begin its computation. Ultimately, I will need to show what percentage this row is to the total of all rows for the given month.

Anybody that can help....it will be greatly appreciated.
 
Quick question...
What does the 2,1 indicate below? Also, why will this formula not work when the cell contains a zero and I insert a 0 in between the ""?

Thanks


=LOOKUP(2,1/(B2:M2<>""),B2:M2)
 
Upvote 0

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Quick question...
What does the 2,1 indicate below? Also, why will this formula not work when the cell contains a zero and I insert a 0 in between the ""?

Thanks


=LOOKUP(2,1/(B2:M2<>""),B2:M2)

This part
B2:M2<>""
is expecting nothing so when you have 0 this will not work
Change to
=LOOKUP(2,1/(B2:M2<>0),B2:M2)


Explanation how this formula works:
http://www.ozgrid.com/forum/showthread.php?t=69525&page=1
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,729
Members
452,939
Latest member
WCrawford

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