EXCEL QUARY

TANUSREE

New Member
Joined
Apr 21, 2022
Messages
4
Office Version
  1. 2016
Platform
  1. Windows
THERE IS TWO TABLE..''NUMBER TABLE & LAST DRAWN " .

IN NUMBER TABLE I HIGHLIGHTED A NUMER " 17 " WHICH YOU SEE APPEARS ON 30th, 24th, 23rd & 19th April respectively.

IN THE "LAST DRAWN " TABLE, I HAVE PICKED THE NUMBER 17 THAT APPEARS 6 FROM THE TABLE ( 30TH - 24TH APRIL) AND HIGHLIGHTED IT TO SHOW IT APPEARED 6 DAYS EARLIER ( HIGHLIGHTED IN YELLOW) THEN I HIGHLIGHTED THE NEXT NUMBER 1 ( 24TH-23RD) APRIL. & SO ON...

The attached xls sheet is an illustration, is there a formula so that whenever I write down the number 17 .... it automatically shows the last drawn number like 6 , 4 , 1 in the chart....
Looking forward to hearing from you ,
 

Attachments

  • Screenshot (96).png
    Screenshot (96).png
    94.5 KB · Views: 7

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Give this a try:
MrExcel_20220426.xlsm
ABCDEFGHIJKLMN
1DateNumbersLast Drawn
24/30/2022287482518356731694
34/29/20221046443432468131174
44/28/20228473431143014101131213
54/27/20222915394842125119none132
64/26/202235932616131126116
74/25/202291224352331512384
84/24/20224912323328403none41275
94/23/20222219102471151nonenone1none
104/22/2022272919357455nonenone743
114/21/202241182649463122nonenone96
124/20/2022621921332none14nonenone9
134/19/202244021411845235631
144/18/20221739457472257none3none7
154/17/202234282338427nonenonenone34none
164/16/202218940144415143426
174/15/202218167313035none5none5none2
184/14/202242384421825nonenone3none1none
194/13/20223541741408nonenonenonenone1none
204/12/20224094633143nonenone1nonenone1
214/11/202232232444639nonenone1nonenonenone
224/10/2022311620433215000000
Sheet10
Cell Formulas
RangeFormula
I2:N21I2=IFERROR(AGGREGATE(15,6,(ROW($A3:$A$22)-ROW($A2))/--($B3:$G$22=B2),1),"none")
I22:N22I22=IFERROR(AGGREGATE(15,6,(ROW($A$22:$A23)-ROW($A22))/--($B$22:$G23=B22),1),"none")
 
Upvote 0
Solution
IS THERE ANY FORMULA TO DELETE THE NUMBER WITHOUT DELETING ROW & COLUMN..? ( in my attachment i need only 17 & 47 so in "look like table " i deleted all other numbers manually except 17 & 47 )

PLEASE FIND THE ATTACHMENT BELOW..
 

Attachments

  • Screenshot (98).png
    Screenshot (98).png
    44.1 KB · Views: 2
Upvote 0
What rule applies to say that you need only 17 and 47? For example, why not show 26 and 30, and no other numbers? The answers to those questions affect the approach to your question.
 
Upvote 0
One idea is to rebuild your initial table and specify which number you want to see, and insert blanks anywhere else, and then use conditional formatting to color the cells of each selected number.
MrExcel_20220426.xlsm
ABCDEFGHIJKLMNOPQRSTU
1Show only284835
2DateNumbersLast DrawnSelected Numbers
34/30/202228748251835673169428 48  35
44/29/20221046443432468131174      
54/28/20228473431143014101131213      
64/27/20222915394842125119none132   48  
74/26/20223593261613112611635     
84/25/202291224352331512384   35  
94/24/20224912323328403none41275    28 
104/23/20222219102471151nonenone1none      
114/22/2022272919357455nonenone743   35  
124/21/202241182649463122nonenone96      
134/20/2022621921332none14nonenone9      
144/19/202244021411845235631      
154/18/20221739457472257none3none7      
164/17/202234282338427nonenonenone34none 28    
174/16/202218940144415143426      
184/15/202218167313035none5none5none2     35
194/14/202242384421825nonenone3none1none      
204/13/20223541741408nonenonenonenone1none35     
214/12/20224094633143nonenone1nonenone1      
224/11/202232232444639nonenone1nonenonenone      
234/10/2022311620433215000000      
Sheet10
Cell Formulas
RangeFormula
I3:N22I3=IFERROR(AGGREGATE(15,6,(ROW($A4:$A$23)-ROW($A3))/--($B4:$G$23=B3),1),"none")
I23:N23I23=IFERROR(AGGREGATE(15,6,(ROW($A$23:$A24)-ROW($A23))/--($B$23:$G24=B23),1),"none")
P3:U23P3=IF(ISNUMBER(MATCH(B3,$R$1:$U$1,0)),B3,"")
Cells with Conditional Formatting
CellConditionCell FormatStop If True
P3:U23Expression=IF($R$1<>"",P3=$R$1,0)textNO
P3:U23Expression=IF($S$1<>"",P3=$S$1,0)textNO
P3:U23Expression=IF($T$1<>"",P3=$T$1,0)textNO
P3:U23Expression=IF($U$1<>"",P3=$U$1,0)textNO
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,827
Members
449,190
Latest member
rscraig11

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