Can you make 1 = 2 in Google Sheets? - google-sheets

Now this may sound like a bizarre question to ask but I'm wondering if there is anyway I could possible make 1 equate 2. For example if I write 11 in a cell, I want it to show 11 but actually equate to 22. I've thought of other ways to do this but It won't show the true value of what I'm trying to show. I don't know if this is possible but I would like the communities help on this one.

Do =SUBSTITUTE(A1,"1","2")
Have a try and share if it works/not..

Related

set times with miliseconds in google sheet [duplicate]

This question already has answers here:
How to SUM duration in Google Sheets?
(5 answers)
Closed 8 months ago.
some time ago I ported an old timesheet to the google-timesheet to be able to share it online and have others modify it but didn't keeped it so I don't remember how I manage to do.
The goal is to compare two timing sheet, today I wanted to edit the sheet to be able add new datas and write timing in separate page sheet which simplify the comparation as I'll just have to import the data from the page and not rewrite it all the time. My issue is that I'm not enable to replicate on my new pages the format. What I would like is to have this exemple working
Cities
Time
Helsinki
2:04.820
Travemünde
4:03.290
Hambourg
0:30.900
Hanovre
2:28.610
Francfort
4:53.470
Mannheim
1:35.170
Strasbourg
2:13.650
Berne
2:25.190
Genève
2:22.620
Lyon
2:24.000
Marseille
3:34.550
Marseille (ferry)
Palerme
2:28.670
Catania
4:07.670
Total
=SUM(above)
so that I can replicate the format on the other pages as I don't understand why it worked before but not now.
mm:ss.000 is the format I would like to have, but atm my format is [h]:mm:ss.000 and it seems that the hour markdown is necesary so I don't really mind if we need to keep the hour.
This is completely possible with google sheets. Enter the data in the format hh:mm:ss.ms, and use sum() (with a range, obv.) to sum the column. Then select the whole colume and apply a custom number format (data-> custom time/date). Using the dropdown to get the parts and typing the separators you can get Minute(1): Seconds(1).Milliseconds(3) which seems to be what you want.
For sheets to recognise the cell entry as a time it needs the hh: part. But you can certainly hide that in the display.
Demo Spreadsheet
If the spreadsheet locale is set to something which uses , for the decimal point, you need to use that instead of . Google could definitely make that a lot clearer. If you have the time you might even want to open a bug report with them, as the examples in their docs don't work when the locale requires a ,.
As a bonus, you can bulk-convert using a formula like =replace(B2; find("."; B2); 1; ",") * 1 (where B2 is the cell to be converted). Drag down, copy and paste the values, and then format if need be.
use:
=ARRAYFORMULA(TEXT(SUM(IFERROR(TIMEVALUE("0:"&B1:B15))); "[m]:ss.000"))

COUNTIFS Formula with Multiple Criteria Ranges

Can anyone perhaps help me? I am trying to do the following:
I am trying to make the report pick up if the prospect is "Not Selling" if the "Not Selling" tab was ticked in either the first attempt, the 2nd attempt or the third attempt.
I used the formula below to make it work when there was only 1 attempt but when I try adding an OR function to the formula it gives me an array size error.
=countifs(Database!$R$3:$R,"="&C45+4,Database!$AH$3:$AH,TRUE)
Is there a way of doing something like what I'm trying to do below?
=countifs(OR(Database!$R$3:$R,Database!$X$3:$X,Database!$AD$3:$AD),"="&C45+4,Database!$AH$3:$AH,TRUE)
database
report
Thanks in advance
Justin
Like this possibly, if I have followed what you want:
=OR(Database!$R$3:$R"="&C45+4,Database!$X$3:$X"="&C45+4,Database!$AD$3:$AD"="&C45+4),"="&C45+4
But you may need to sort the detail there.

I am trying to autofill a column based on text in the same row, but the references will be different categories and I'm getting ERROR thrown at me

I am trying to code a Google sheet for my mother's book keeping but I am hitting a wall. I have a number of categories that will be referenced and, depending on the category the monetary value will be changing.
Example.
Clerical $20/hr
Prop Mngt $35/hr
Admin $50/hr
Plus others I'm not aware of yet
I have tried this code =IF(SEARCH("Administration",$C8)>0,"$50") and it worked for the one keyword.
When I tried =IF(SEARCH("Administration",$C8)>0,"$50"),=IF(SEARCH("Clerical",$C8)>0,"$20") I was given ERROR.
How do I tell C8 to autofill D8 with the correct hourly rate? This will then feed D10 with =SUM(D8*E8) ???
Thank you for your help. I know just enough to know it's possible but not enough to grasp the issues I'm facing.
Try
=IF(not(iserror(SEARCH("Administration",$C8))),"$50",IF(not(iserror(SEARCH("Clerical",$C8))),"$20",""))
Another solution is to use this formula I think more understandable
=IFs(not(iserror(SEARCH("Administration",A1))),"$50",not(iserror(SEARCH("Clerical",A1))),"$20")

The data in my Google Sheet is not appearing in the correct cell

I am trying to create a spreadsheet to simplify our account returns. I am using a variety of named ranges to make life easier. I have created a test sheet which automatically copies the inputted cost to its appropriate category.
I am having a strange issue where the cell I am expecting to see the data in is incorrect. I am wondering if the 2 data validation lists I have created could be causing the issue. I had originally copy / pasted from an old sheet but as I wondered if some strange formatting may have been carried over which is causing the issue I have since manually entered all data to remove this as a potential cause.
https://docs.google.com/spreadsheets/d/1KC8FsVNQZfWtey5TvPDxCxvDhRrFVHdsbDJWmZu73wg/edit#gid=0
This is the test sheet in question. The cost for entries Test 9 & Test 10 should be in the Info Books and Stationary sections retrospectively but they are ending up in the wrong places.
I am not a spreadsheet expert so I apologise if I am missing something blatently obvious. A friend advised me to ask on Stackoverflow after many hours lost to this problem.
Thanks in advance for any help you may be able to give.
Use the third parameter in vlookup set to false (or zero)
=IF(VLOOKUP(companyOfPurchase,suppliersAndCategories,2, 0) = typeOfPurchase,totalOfReceipt,"")
and see if that works?

Using Conditional Formatting With Words

I'm using a Spreadsheet in Google Docs, and trying to find a script that will let me do a kind of conditional formatting that Google will now allow on it's own.
If any cell in E has "Paid" in it I want the corresponding cell in G to turn green. So if E4 is paid, G4's background goes green. I know I need a script to do this, and I've tried looking through here, but I have 0 experience with scripts and have spent the last three days trying in vain to figure this out on my own.
Can anyone help me figure out how to do this? And, honestly, the dumber you assume I am, the better, in this case.
Please try something like:
(This is using New Google Sheets.)

Resources