Paste special format empty cells too

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello Everyone,

This sheet contains data which I have copied from the workings of a sheet and pasted here using paste special values. I have inserted an additional column to check the totals if they are correct. I have given the formula as shown above. The Problem is if the amount is blank, which is in most of the cases, the calculation shows an error. I have to delete the whole blank cells manually each one of them. As the data is huge, it will be time consuming to do so. Can this be avoided .? Is there any way I could paste the data in such a way that the blank cells are not formatted. ?
Query Do not format blank cells.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1CheckABCDEAmtGAmtIAmtKAmtMAmtOAmtQAmtSAmtUAmtWAmtYAmt
2-01-02-2021R1A-3751.00January3752.00Sunday-1.00
3#VALUE!03-02-2021P2B-675.00February674.00Monday1.00
4#VALUE!04-02-2021C3C-3500.00March3538.00Tuesday-38.00
5#VALUE!06-02-2021R4D-18000.00April18114.00Wednesday-114.00
6-07-02-2021P5E-24000.00May10000.00Thursday10000.00Sunday4000.00
7#VALUE!09-02-2021C6F18000.00June-20000.00Friday2000.00
8#VALUE!11-02-2021R7G-1180.00July1176.00Saturday4.00
9#VALUE!16-02-2021P8H-3600.00August3601.00Sunday-1.00
10#VALUE!17-02-2021C9I-12.00September6.00Monday6.00
11#VALUE!19-02-2021R10J-5148.00October5147.00Tuesday1.00
12#VALUE!22-02-2021P11K-11100.00November11110.00Wednesday-10.00
13#VALUE!22-02-2021R12L-8285.00December8284.00Thursday1.00
14-26-02-2021P13M7786.00January-1493.00Friday-3045.00Monday-3248.00
15#VALUE!27-02-2021C14N-10678.00February10674.00Saturday4.00
16#VALUE!28-02-2021R15O20000.00March-100.00Sunday-19900.00
Query Paste special selection
Cell Formulas
RangeFormula
A2:A16A2=SUM(G2+I2+K2+M2+O2+Q2+S2+U2+W2+Y2+AA2)
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try changing the + symbols to commas.
Jasonb, That is not the problem. When I paste the data with paste special in an application, it show an error "Following Errors found in validation" and also displays a message the totals do not match with the row number. This is because when I pasted the data with paste special, it formatted the empty cells too. I wanted to know is there a way to paste data without formatting the blank cells. Sometimes the data is in 10 columns, at times 11, or maybe sometimes also 20 in different rows.
 
Upvote 0
Another option
Excel Formula:
=SUMIFS(G2:AA2,$G$1:$AA$1,"Amt")
 
Upvote 0
it show an error "Following Errors found in validation" and also displays a message the totals do not match with the row number.
Where was this information in post 1?

The answers provided are as good as the question.
 
Upvote 0
Are you copy/pasting manually?
 
Upvote 0
Are you copy/pasting manually?
Yes, Fluff. I do the workings in one sheet, and copy the whole data which includes blank cells too, then paste it to the application with paste special as most of the cells contain formulas, All the rows contain data, but some columns contain data and some are blank and that too not in a order. I have to filter each column with blank and delete unwanted format from the cells.
 
Upvote 0
It is still not clear what the problem is or how you're creating it to begin with.

Pastespecial formats only pastes formats, it is not possible for that to cause an error.

Pastespecial values will paste the values of the source cells, if you copy empty cells you will paste empty cells, if you copy formula blanks you will paste nullstrings.

The #VALUE! errors in your formulas are likely caused by nullstrings from copying formula blanks. Either of the suggested formulas will ignore the nullstrings and tread the cells as being empty (zero value).

If there is another problem then you will need to be more specific.
 
Upvote 0
It is still not clear what the problem is or how you're creating it to begin with.

Pastespecial formats only pastes formats, it is not possible for that to cause an error.

Pastespecial values will paste the values of the source cells, if you copy empty cells you will paste empty cells, if you copy formula blanks you will paste nullstrings.

The #VALUE! errors in your formulas are likely caused by nullstrings from copying formula blanks. Either of the suggested formulas will ignore the nullstrings and tread the cells as being empty (zero value).

If there is another problem then you will need to be more specific.
Maybe, I think, the application I am using, which is also an excel application used to import data from excel to another application, doesn't accept empty formatted cells. Not sure about it.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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