Excel Formula

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,500
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I need an excel formula to show a list if cells in column C is blank..

Kindly have a look below. Formula required starting from cell A14

Mr Excel Query.xlsx
ABC
1Sample DATA
2PO #Target DateActual Date
35101-Jan
45091-Jan5-Jan
55011-Jan
68252-Jan
75115-Jan
85125-Jan
94986-Jan4-Jan
101233-Jan
11
12Pending List
13PO #Target DateActual Date
145101-Jan
155011-Jan
168252-Jan
175115-Jan
185125-Jan
191233-Jan
Sheet1
Cell Formulas
RangeFormula
B14:B19B14=VLOOKUP(A14,$A$2:$C$10,2,FALSE)


Any help would be appreciated

Regards,

Humayun
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
How about
=INDEX($A$3:$A$10,AGGREGATE(15,6,(ROW($A$2:$A$10)-ROW($A$2)+1)/($C$3:$C$10=""),ROWS(A$14:A14)))
 
Upvote 0
Thanks Fluff,

as always you are there :)

Please check this... I have named the ranges A3:A10 > po_no & C3:C10 > actual_date

=IFERROR(INDEX(po_no,AGGREGATE(15,6,(ROW(po_no)-ROW($A$3)+1)/(actual_date=""),ROW(1:1))),"")

Although the formula is working perfect... I would like you to have a look at the bold part...

You have used A2:A10 ... I have changed it to A3:A10 > po_no
next
Row($A$2) is changed to Row($A$3)

are the changes going to be fine or is there anything I have done wrong....... as of now working Perfect though :)
 
Upvote 0
Sorry My Bad....

The list needs to be generated if the target date is there and actual date is not there :(
 
Upvote 0
Those changes are correct, it was a typo on my part, but you need to leave the last part as it was.
=IFERROR(INDEX(po_no,AGGREGATE(15,6,(ROW(po_no)-ROW($A$3)+1)/(actual_date=""),ROWS(A$14:A14))),"")
 
Upvote 0
To check if there is a target date, use
=IFERROR(INDEX(po_no,AGGREGATE(15,6,(ROW(po_no)-ROW($A$3)+1)/((actual_date="")*($B$3:$B$10<>"")),ROWS(A$14:A14))),"")
 
Upvote 0
Solution
Many Thanks for you help Fluff,

Works like a charm now :)

But please educate me..... why we should not change the last part

ROWS(A$14:A14) > gives 1 & ROW(1:1) also gives one

and if I drag the formula down both giving the same numbers .....
 
Upvote 0
If the formula is in A14 & you use ROW(1:1) then if you insert a new row in row1 your formula will break.
Notice the difference between col A & C

+Fluff New.xlsm
ABC
1
2Sample DATA
3PO #Target DateActual Date
451001/01/2020
550901/01/202005/01/2020
650101/01/2020
782502/01/2020
851105/01/2020
951205/01/2020
1049806/01/202004/01/2020
1112306/01/2020
12
13Pending List
14PO #Target DateActual Date
1551001/01/2020501
1650101/01/2020825
1782502/01/2020511
1851105/01/2020512
1951205/01/2020123
2012306/01/2020 
Main
Cell Formulas
RangeFormula
A15:A20A15=IFERROR(INDEX(po_no,AGGREGATE(15,6,(ROW(po_no)-ROW($A$4)+1)/((actual_date="")*($B$4:$B$11<>"")),ROWS(A$15:A15))),"")
B15:B20B15=VLOOKUP(A15,$A$3:$C$11,2,FALSE)
C15:C20C15=IFERROR(INDEX(po_no,AGGREGATE(15,6,(ROW(po_no)-ROW($A$4)+1)/((actual_date="")*($B$4:$B$11<>"")),ROW(2:2))),"")
 
Upvote 0
Thanks once again....

The concept is very clear now :)
 
Upvote 0
Hi,

One last question..... Can we ignore the repeated PO # .... can we get the unique list...
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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