Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

excel formulas

Featured Replies

instead of using conditional formatting in excel to change the colour of a cell, is there a formula where the cell can = the colour red. thanks for your help.

chris


What you want can be done with VB for Applications (VBA).

Please be more specific of what is you are trying to accomplish, that could provide more info to help you better.

  • Author

i would like a cell to say

IF(c1=c2,"CELL COLOUR IS RED","CELL COLOUR IS BLUE")

But how do i write this properly so the cell colours actually change. i cannot use conditional formatting, because on the shared workbook i am using it is not accessible. thanks

If what you mean to do is that if cell #1 equals cell #2, if they are equal one of them turns red (you did not specify which one), else (cell #1 <> cell #2) then one of them turns blue.

IF that is what you want, maybe this could help.

Let's say you have a number on A1 and if it equals that of A2 then A3 would become Red, else A3 would be Green

If ActiveSheet.Range("A1").Value = ActiveSheet.Range("A2").Value Then
   ActiveSheet.Range("A3").Interior.ColorIndex = 3
Else
   ActiveSheet.Range("A3").Interior.ColorIndex = 4
End If

Where ColorIndex is (search in MS Excel VB reference help file):

  • 3 = Red
  • 4 = Green
  • 5 = Blue.. .and so on

If THAT is NOT what you are trying to do, please be more SPECIFIC! ;)

  • Author

thanks a lot! that has helped me immensly, and i have now completed the sheet and it all works accordingly, thanks again....

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.