When Cell Contains xx

MrDB4Excel

Active Member
Joined
Jan 29, 2004
Messages
348
Office Version
  1. 2013
Platform
  1. Windows
Cells AQ20:AQ30 need to contain formulas that are then used in lieu of cell AP19 for input to the fomulas in AP20:AP30 if any cell in AM20:AM30 contains xx. At least this is my thinking on how this can work. Please help.
Seems simple enough, right? Well I have tried multiple iterations of the if, isblank, lookup and a slew of other combinations but just cannot get the hang of it to give what I want.
What I want is for any cell in the AM20:AM30 range that contains xx to cause the relevant cell in the AP20:AP30 range to become blank.
Any advice will be much appreciated.

ApartmentCleaningSchedule2024_Chngs.xlsx
BCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQ
18JulyAugustSeptemberOctoberNovemberDecemberOctober 09, 202410
191st2nd3rd4th5th6th1st2nd3rd4th5th6th1st2nd3rd4th5th6th1st2nd3rd4th5th6th1st2nd3rd4th5th6th1st2nd3rd4th5th6th2024October10/15/2024
2077October 07, 2024Formulas go into these cells, AQ20:AQ30, that are then used in lieu of AP19 for input to the fomulas in AP20:AP30 if any cell in AM20:AM30 contains xx
21162799October 09, 2024
22162799October 09, 2024
23162799October 09, 2024
2466October 06, 2024
251688October 08, 2024
26xxOctober xx, 2024
271699October 09, 2024
2888October 08, 2024
2988October 08, 2024
30xxOctober xx, 2024
31
329                9
Sheet1
Cell Formulas
RangeFormula
AM18AM18=TEXT($AP$19&" "&$AM$32&", "&$AM$19,"mmmm dd, yyyy")
AQ19AQ19=TODAY()
AM27:AM29,AM20:AM25AM20=IFERROR(LOOKUP(2,1/(B20:AK20<>""),B20:AK20),"??")
AM26,AM30AM26=IFERROR(LOOKUP(2,1/(B26:AK26<>""),B26:AK26),"xx")
AP18AP18=MONTH(AQ19)
AP19AP19=TEXT($AP$18*29,"mmmm")
AP20AP20=TEXT($AP$19&" "&$AM$20&", "&$AM$19,"mmmm dd, yyyy")
AP21AP21=TEXT($AP$19&" "&$AM$21&", "&$AM$19,"mmmm dd, yyyy")
AP22AP22=TEXT($AP$19&" "&$AM$22&", "&$AM$19,"mmmm dd, yyyy")
AP23AP23=TEXT($AP$19&" "&$AM$23&", "&$AM$19,"mmmm dd, yyyy")
AP24AP24=TEXT($AP$19&" "&$AM$24&", "&$AM$19,"mmmm dd, yyyy")
AP25AP25=TEXT($AP$19&" "&$AM$25&", "&$AM$19,"mmmm dd, yyyy")
AP26AP26=TEXT($AP$19&" "&$AM$26&", "&$AM$19,"mmmm dd, yyyy")
AP27AP27=TEXT($AP$19&" "&$AM$27&", "&$AM$19,"mmmm dd, yyyy")
AP28AP28=TEXT($AP$19&" "&$AM$28&", "&$AM$19,"mmmm dd, yyyy")
AP29AP29=TEXT($AP$19&" "&$AM$29&", "&$AM$19,"mmmm dd, yyyy")
AP30AP30=TEXT($AP$19&" "&$AM$30&", "&$AM$19,"mmmm dd, yyyy")
U32U32=MAX(U20:U30)
V32:AK32V32=IF(MAX(V20:V30)=0,"",MAX(V20:V30))
AM32AM32=LOOKUP(2,1/(B32:AK32<>""),B32:AK32)
 

Attachments

  • 2024 Calendar From Excel.png
    2024 Calendar From Excel.png
    66.3 KB · Views: 1

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Try this in AP20:

=IF($AM20="xx","",TEXT($AP$19&" "&$AM20&", "&$AM$19,"mmmm dd, yyyy"))
 
Upvote 0
Try this in AP20:

=IF($AM20="xx","",TEXT($AP$19&" "&$AM20&", "&$AM$19,"mmmm dd, yyyy"))
Perfect Phouc. This is exactly what works and no need to put formulas in AQ20:AQ30.
Awesome, good job, much appreciated and much easier than I ever expected. Learning new things everyday and this tops all for this day.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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