Sep 25 2021 11:33 AM
Using Excel for Mac 16.52 and have an (IF this value, this formula, default formula) set up but am trying to use IFBLANK up front so it only generates a result when it's supposed to (when the cell before it has a date value).
IFBLANK was working fine until I added the variable formula component: =IF(ISBLANK(G28)," ",('Tracking Sheet'!$B$13*'Tracking Sheet'!$B$10))
Variable value formula works if I'm not using IFBLANK: =IF($C26="Standard",('Tracking Sheet'!$B$13*'Tracking Sheet'!$B$10),('Tracking Sheet'!$F$13*'Tracking Sheet'!$F$10))
I can do one or the other - how do I do both. #StumpedInStLouis!
Sep 25 2021 11:56 AM
Does this do what you want? If not, in what way?
=IF(G28="","",'Tracking Sheet'!$B$13*'Tracking Sheet'!$B$10)
Sep 25 2021 12:26 PM
@Hans Vogelaar Thanks, Hans! I'm no expert, but does that allow for a second conditional formula? What I need to do is create a conditional formula: If A1="Standard", perform this specific calculation but if A1="Full", perform the other specific calculation. Then, I need to wrap all that into an IFBLANK so that if F1 is blank, it does nothing but if F1 has a date value, it performs the above calculations based on the value of A1. Does that make sense?
Sep 25 2021 12:33 PM
SolutionYes:
=IF(F1="", "", IF(F1="Standard", ..., IF(F1="Full", ...)))
or
=IFS(F1="", "", F1="Standard", ..., F1="Full", ...)
Sep 25 2021 01:32 PM
Sep 29 2021 06:52 PM
Hans, that was it! Took a couple passes to get the syntax correct but it worked. Thanks for your help! Turns out it created a COUNTIF problem when I added the new category ("Full") but I'm trying to work that out using the same logic. :face_with_rolling_eyes: No luck so far. Can I post back here if I have trouble with COUNTIF or should I start a new thread? @Hans Vogelaar
Sep 30 2021 01:09 AM
Feel free to post a reply in this discussion.
Oct 02 2021 03:54 PM
Oct 03 2021 01:10 AM
Could you attach a small sample workbook without sensitive data? That would allow me to experiment.
Thanks in advance.
Oct 03 2021 02:02 PM
@Hans Vogelaar Thanks, Hans. Let me know if this opens for you. The cells I'm trying to fix are S9, S10, S11, and V9, V10, V11. Thank you again for your help!
Oct 03 2021 02:16 PM
Thanks.
The problem is thast all ranges in COUNTIFS must have the same shape and size.
In S9:
=IF(AND(ISBLANK(G18:G517),ISBLANK(J18:J517),ISBLANK(M18:M517)),"",COUNTIFS(C18:C517,"Standard",$G$18:$G$517,">="&DATE($Q$6,$R$6,$S$6),$G$18:$G$517,"<="&DATE($Q$7,$R$7,$S$7)))
And in V9 probably
=IF(AND(ISBLANK(G18:G517),ISBLANK(J18:J517),ISBLANK(M18:M517)),"",COUNTIFS(C18:C517,"Full",$G$18:$G$517,">="&DATE($Q$6,$R$6,$S$6),$G$18:$G$517,"<="&DATE($Q$7,$R$7,$S$7)))
Oct 03 2021 03:24 PM
Oct 04 2021 01:00 AM
Try
=IF(AND(ISBLANK(G18:G517),ISBLANK(J18:J517),ISBLANK(M18:M517)),"",COUNTIFS(C18:C517,"Standard",$G$18:$G$517,">="&DATE($Q$6,$R$6,$S$6),$G$18:$G$517,"<="&DATE($Q$7,$R$7,$S$7))+COUNTIFS(C18:C517,"Standard",$J$18:$J$517,">="&DATE($Q$6,$R$6,$S$6),$J$18:$J$517,"<="&DATE($Q$7,$R$7,$S$7))+COUNTIFS(C18:C517,"Standard",$M$18:$M$517,">="&DATE($Q$6,$R$6,$S$6),$M$18:$M$517,"<="&DATE($Q$7,$R$7,$S$7)))
Oct 04 2021 10:48 AM
Oct 04 2021 12:16 PM
Oct 04 2021 12:24 PM
Select the range you want to format. The active cell in the selection should be in row 18.
On the home tab of the ribbon, select Conditional Formatting > New Rule...
Select 'Use a formula to determine which cells to format'.
Enter the formula
=AND($C18="Standard",$G18>=DATE($Q$6,$R$6,$S$6),$G18<=DATE($Q$7,$R$7,$S$7))
Note that there is no $ before the row number 18. We want this to be relative.
Click Format...
Activate the fill tab.
Select a color.
Click OK, then click OK again.
Activate the Fill tab
Oct 04 2021 03:52 PM
Oct 05 2021 01:17 AM
If you wish, you might like my replies by clicking the thumbs up button, and if the forum allows you to mark more than one reply as the solution, do that. But it's not essential, your kind words are reward enough!
Sep 25 2021 12:33 PM
SolutionYes:
=IF(F1="", "", IF(F1="Standard", ..., IF(F1="Full", ...)))
or
=IFS(F1="", "", F1="Standard", ..., F1="Full", ...)