.numberformat

  1. S

    Using NumberFormat with Offset

    Hi guys, sorry again for a simple question but I cant seem to get it to work. If Weekday(rngCel) = 1 Then rngCel.Offset(0, 1).Value = 45 .NumberFormat = "0.00" If Weekday(rngCel) = 1 Then rngCel.Offset(0, 1).Value = Format(45, "Currency") I have tried with this...
  2. L

    VBA - Change Existing Currency Formatted Cells On Multiple Sheets Based On Value Of 1 Cell On One Worksheet

    Hello there, I am a newbie VBA user here. By default, the 'Currency' cells of the entire workbook are formatted in 2 version (difference is just in decimal point, as per below): .NumberFormat = "$#,##0.00" .NumberFormat = "$#,##0"What I am trying to do is, when the case of 1 cell on the main...
  3. B

    Convert

    Evening All Question I am converting a text value to a percentage with the below script. If there is no value in the cell I am receiving a #VALUE ! error. What is the most efficient approach. I believe I can insert a zero value if the cell is blank and then covert, however this does not...
  4. M

    Novice Needs Help with Macro

    Hello All, First let me state that I am a complete novice to macros and vba. However, I am able to reverse engineer existing macros and vba code to en extent. I was able to locate the macro below from this this forum. I made some changes to suit my needs and it works beautifully. My problem is...
  5. S

    Extracting Integer from DateTime values

    Hi all, Hopefully its just a quick solution needed here: I have a table column that contains imported datetime values. I have formatted them as 'dd-mmm-yy', and am trying to extract counts that fall between different date ranges. However, I've noticed that the values are not truly integers...
  6. B

    Dash if Zero VBA

    Good evening Looking to insert a dash if cell value is a zero using With range("E2:E" & lastrow) .numberformat = ????? .Value = .Value End With
  7. B

    Format Dynamic Range

    Good morning trying to format multiple ranges. 1st range D6:G. the data will change (increase or decrease). the code I am using. Thanks Dim finalrow As Long Dim i As Long finalrow = Cells(Rows.Count, 1).End(xlUp).Row For i = 6 To finalrow With...
  8. F

    adding "SUM" formula for selected cell in Userform VBA

    Hi everyone, I'm working now with a userform in VBA, in which i can input a data using that form to other sheet here's the code that i used, the last code won't work as I wish, the column "N" should total column "K", "L", and "M" in each row.. but i didn't work that way, if anyone knows on...
  9. V

    How to Convert blanks to "-"

    Hello Experts! Help pls. I have below code in my workbook which formats the numbers in my pivot table to 2 decimal places (and no decimal for UK region) and turns zeros into "-". How can i add a line item to change also blanks (not zeros) with "-"? Can i incorporate it below or requires another...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top