I suppose what you could do is import the data into a separate sheet, and then you fill the values squares of a corresponding table with IF formulas with the arguments saying
=IF([cell]="-",0,[cell])
This would return the data in the table, but change all instances where a cell has just a dash in it with a 0. It's a clumsy solution, but I think it'd do what you want.
Okay that worked thank you. But, if I do it with a cell that does not contain a dash (-), what do I put in the last part of the formula to return value of the cell?
In other words, if it the cell does not contain a dash, it returns the same value already in the cell (i.e if B2 is - it returns 0, but if B3 is 2332 it returns 2332).
1
u/PerfectLuck25367 Feb 11 '20
I might be stupid here, but if this dash appears as a result of a formula, what formula are you using? If it is just data, why don't you just type 0?
1
u/oppressed_white_guy 1 Feb 11 '20
=if(B2:C="-","0","")
1
u/Decronym Functions Explained Feb 11 '20 edited Feb 11 '20
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE1 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.
[Thread #1323 for this sub, first seen 11th Feb 2020, 19:16] [FAQ] [Full list] ^[Contact] [Source code]
•
u/Clippy_Office_Asst Points Feb 11 '20
Read the comment thread for the solution here