How to create a formula in Numbers to fill cells based on text in another column?

Hi there. I am wanting a formula to fill in a cell if column 'A' has text in it.


For example all cells under black should be empty. Is there a formula that can do this?


Thanks in advance.



[Re-Titled by Moderator]

Original Title: Numbers formula

iMac (M3, 2023)

Posted on Jun 2, 2025 10:45 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 3, 2025 10:45 AM

YellowBox shows one way.


I thought of it a different way.


Specifically, B3:


=IF(ISBLANK($A3),"",5×B2)


This specifically checks if the cell in column A is blank. If it is, it returns an empty cell, otherwise it returns a value (in this case, 5 x the Ratio cell B2).


It's a little easier to read, but has the side effect that it will return 0 if there's no ratio value (not sure if that's an issue or not). You can always use Number formatting to suppress 0-values.

12 replies
Question marked as Top-ranking reply

Jun 3, 2025 10:45 AM in response to HayleyHatzi

YellowBox shows one way.


I thought of it a different way.


Specifically, B3:


=IF(ISBLANK($A3),"",5×B2)


This specifically checks if the cell in column A is blank. If it is, it returns an empty cell, otherwise it returns a value (in this case, 5 x the Ratio cell B2).


It's a little easier to read, but has the side effect that it will return 0 if there's no ratio value (not sure if that's an issue or not). You can always use Number formatting to suppress 0-values.

Jun 4, 2025 11:38 PM in response to Camelot

Camelot wrote:

Option-= will work in any app, whereas substituting <> for ≠ is unique to Numbers.


Thanks for the tip on Option-=! Not sure when it's good to use it, though.


Excel on my machine throws an error when I insert ≠ in a formula using Option-=


Excel seems to need <> in formulas.


As does Google Sheets.


Is seems it's not that "substituting <> for ≠ is unique to Numbers"


Instead it's "substituting ≠ for <> is unique to Numbers"


Or something like that!


In any case, with spreadsheets it's hard to go wrong inputing <> in formulas to mean inequality.


SG


Jun 5, 2025 10:49 AM in response to SGIII

> Excel on my machine throws an error when I insert ≠ in a formula using Option-=


I meant that typing option-= acts at the system level and will always input the ≠ character, not that it's universally understood/interpreted by every application.


> In any case, with spreadsheets it's hard to go wrong inputing <> in formulas to mean inequality.


True, except that Numbers only uses ≠ since it auto-replaces the <>. If you copy this formula and paste it into Excel it copies as ≠ and Excel doesn't know what to do about it. <sigh>.


Maybe the better option is to forego <> and ≠ completely:


=NOT(A1=B1)


:)


Jun 5, 2025 8:35 PM in response to Camelot

NOT is the clearest, at the minimal cost of a net four additional keystrokes.


In a similar vein, the Numbers formula editor auto-replaces / with ÷.


I've discovered it will also happily accept ÷ (which can be input by option-/).


I tried option-/ in Excel. It accepts it with no error! But it auto-converts the ÷ to /.


But using option-/ in Google Sheets pops up a keyboard shortcuts menu.


Since I'm lazy and easily confused I think I'm going to stick with typing <> for inequality and / for division. 😀


I'm guessing these have been used in spreadsheet software since the early days of more primitive keyboards.


SG




This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to create a formula in Numbers to fill cells based on text in another column?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.