How to bring down row without zero value

Zubair

Active Member
Joined
Jul 4, 2009
Messages
304
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I need formula to bring next row information if value is zero.

Like from the below example, D13 is zero, in the month of Feb I want B14 and D14 in Cell B27 and C27.

I have a list of 1000 products so not able to link each cell. please help

Book1
BCD
2ProductJanFeb
3A200120
4B10089
5C89200
6D95
7E150150
8
9Rank
10A13
11B34
12C51
13D4 
14E22
15
16Jan
17A1
18B3
19C5
20D4
21E2
22
23Feb
24A3
25B4
26C1
27E2
Sheet1
Cell Formulas
RangeFormula
C10:C14C10=IF(C3=0,"",RANK(C3,$C$3:$C$7,0))
D10:D14D10=IF(D3=0,"",RANK(D3,$D$3:$D$7,0))
C17:C21C17=C10
C24:C26C24=D10
C27C27=D14
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Thanks. Try this

23 03 11.xlsm
AB
1InputFeb
2A3
3B4
4C1
5D
6E2
7
8
9Output
10B4
11A3
12E2
13C1
14  
Zubair (2)
Cell Formulas
RangeFormula
A10:B14A10=IFERROR(INDEX(A$2:A$6,MATCH(LARGE($B$2:$B$6,ROWS(A$10:A10)),$B$2:$B$6,0)),"")
Thats really fantastic. Thanks again
 
Upvote 0

Forum statistics

Threads
1,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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