Is it possible to identify a cell and use its co-ordinates?

excelos

Well-known Member
Joined
Sep 25, 2011
Messages
591
Office Version
  1. 365
Platform
  1. Windows
Hello

Is it possible to have a formula that will check all the cells at left in the row, find the first cell that is not zero, and use its co-ordinates (eg A12) ?

Thanks!
 
Excel 2012
ABCDEFGHI
19/26/20189/27/20189/28/20189/29/20189/30/201810/1/201810/2/201810/3/2018
252637452
3000018181818
439%22%28%11%

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B3=IF(A3<>0,A3,IF(B1< TODAY(),0,SUM(B2:$I2)))
B4=IF(B3=0,"",B2/B3)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>



As I understand your requirements, the B3 formula does exactly what you want, although I took a different angle. Since the value from F3 to I3 is the same every time, we only need to calculate it once, in F3. So the formula first checks to see if we have calculated it already, if so, we just copy it from the cell to the left. If the cell to the left is 0 (or empty), then we need to check the date. If the date is less than today, we put 0. If equal to or greater than today, then we sum up the values from the current column to the end of the range (note the $ in the last range of the formula).

The B4 formula should calculate the percentage you want.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,216,128
Messages
6,129,030
Members
449,482
Latest member
al mugheen

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