IF blank cell

joetejas

New Member
Joined
Feb 5, 2019
Messages
17
I need to add an if blank into this formula. I am trying to add but I keep receiving an error. I am adding for a type of override to the current setup.

Current formula
=IF($BG$3<>0,IF($I6="Other - Explain in Comments",((AF6-$AC6)/$AC6)*R6,IF(AR6>0,((R6*AR6*((AF6-$BB6)/$BB6))+(((VLOOKUP($C6,'Market Input'!$G:$AX,BG$1,FALSE)-$BB6)/$BB6)*R6*(1-AR6))),((VLOOKUP($C6,'Market Input'!$G:$AX,BG$1,FALSE)-$BB6)/$BB6)*R6)),0)

want to add
IF cell BC is blank = 0 do nothing, but if a % is in cell BC (BC*AF)
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Col Delane

Active Member
Joined
Jan 14, 2014
Messages
303
That formula is far too complex to debug :eek:(as you're finding)

Break out the formula into separate helper cells with each containing manageable components (at a minimum the different arguments of each IF function, each VLOOKUP function, + your =ISBLANK([Ref]) [which will return TRUE or FALSE] ) so that you can easily confirm the operation of each bit.
Then bring those components together in your master formula by linking to each helper cell to get the end result.

Once satisfied with this, you could recombine it all together back into a monster like you already have by replacing the cell links with the formula in the target cells - but I wouldn't recommend doing that. There is no shortage of real estate on an Excel spreadsheet, so spread out your cal'cs so that you can easily work out what each bit is doing.
 

Watch MrExcel Video

Forum statistics

Threads
1,109,359
Messages
5,528,226
Members
409,809
Latest member
VICKRAM

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top