IF formula

nSomnius

New Member
Joined
Nov 7, 2013
Messages
26
This formula is supposed to test if one cell value is less than another, if so, show nothing, if not, then do a percentage calculation and show that, what am i missing?

=IF((AZ2<$AX$7),(""),(("BA2/AZ2)*100")))

Happy to share the spreadsheet if it helps, it's nothing personal.
Here's how it shows up in Excel:

https://www.dropbox.com/s/kgdl1dhj3z1bgfu/excel problem.jpg?dl=0

The one cell that can't change as I use the fill handle is AX7. As soon as I drag the formula down a column all I see is the formula in the resulting cells. Ideas?
Thanks for any help with this.
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

footoo

Well-known Member
Joined
Sep 21, 2016
Messages
2,853
Office Version
2016
Platform
Windows
Re: Need some help with what I thought was a basic IF formula

=if(az2<$ax$7,"",ba2/az2*100)
 

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
5,265
Office Version
365
Platform
Windows
Re: Need some help with what I thought was a basic IF formula

quote marks are the cause of your problem
=IF((AZ2<$AX$7),(""),(("BA2/AZ2)*100")))

=IF((AZ2<$AX$7),(""),((BA2/AZ2)*100))

removing brackets not required too..
=IF(AZ2<$AX$7,"",BA2/AZ2*100)
 

nSomnius

New Member
Joined
Nov 7, 2013
Messages
26
Re: Need some help with what I thought was a basic IF formula

Much obliged everyone! All set now.
 

Forum statistics

Threads
1,089,557
Messages
5,408,931
Members
403,243
Latest member
psabin8951

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top