Auto input value when multiple conditions are fulfilled - if-statement

i am looking for formula, which can auto detect value in column A & B inputted manually and auto update value in column C once condition is triggered. Thank you.
the example excel: https://docs.google.com/spreadsheets/d/1FJB6kSUnWnmxJ7VB0lAO_K88eWg8aZAaLN2KPx0uj14/edit?usp=sharing

try:
=INDEX(IF(A2:A="",,IF((A2:A=1)*(B2:B=1), 1, 0)))

Related

Arrayformula to lookup last entry

I have this example here
I need to have the data in column D filled in with arrayformula. The value should be the value in column B.
I've tried using combination of ROW&INDIRECT&FILTER&QUERY|VLOOKUP , but it didn't work, as if ROW() cannot be used in arrayformula. Maybe you guys have some idea that could work.
use:
=ARRAYFORMULA(IF(C7:C="",, VLOOKUP(ROW(A7:A), IF(B7:B<>"", {ROW(A7:A), B7:B}), 2, 1)))

Highlighting a whole row if number of blank cells in the row = a certain number

I'm trying to highlight a row if the number of blank cells between say, C1 and E1 = 3
and then copy this down for every row.
I've tried using:
=IF(COUNTBLANK($C1:$E1)=3)
But it's not working, can anybody help?
Under conditional formatting, your formula should be the following based on what you've given. The reason is conditional format is trying to see the result as TRUE or False. The IF statement is trying to tell the computer what to do when it's TRUE or FALSE.
COUNTBLANK($C1:$E1)=3
if you want to use IF you will need to do it like this:
=IF(COUNTBLANK($C1:$E1)=3, 1)

How to populate a value when comparing two columns, VLOOKUP or IF?

I'm trying to create "Sale Rep" summaries by "Shop", where I can simply filter a column by the rep's name, them populate a total sales for each shop next to the relevant filter result.
I'm using this to filter all the Stores by Scott:
=(filter(D25:D47,A25:A47 = "Scott"))
Next, want to associate the Store/Account in F to populate with the corresponding value of E inside of G. So, G25 should populate the value of E25 ($724), G26 with E26 ($822), and F27 with E38 ($511.50)
I don't know how to write the formula correctly, but something like this is what I'm trying to do: =IF(F25=D25:D38),E25 I know that's not right, and it won't work in a fill down. But I'm basically trying to look for and copy over the correct value match of D and E inside of G. So, Misty Mountain Medicince in F27 will be matched to the value of E38 and populated in G27.
The filter is what's throwing me off, because it's not a simple fill down. And I don't know how to match filtered results from one column to a matched value in another.
Hope the screenshot helps. Screenshot of table:
Change Field Rep: Scott to Scott and you might apply:
=query(A25:E38,"select D,E where A='"&F24&"'")
// Enter the following into G25 and copy down column G
=(filter(E25:E47, D25:D47 = F25))
or
// Enter the following into G25 will expand with content in F upto row 47
=ArrayFormula(IF(F25:F47 <> 0, VLOOKUP(F25:F47, D25:E47, 2, FALSE),))

IF Statement with Network days

I'm trying to write a formula using an IF and Networkdays function. I basically want this formula to look in column J3 and see if there is a date. If there is a date the it should return the number of work days between the completion date and the discovery date.
If J3 (completion date) is blank, which means it hasn't benn completed, then I just want it to return blank
Try something like this:
=IF(J3 = "", "", NETWORKDAYS(A3, J3))
You already had 50% of the formula.
The IF statement will check whether or not J3 is blank (i.e. ""). If that is true, it will return a blank value. If it's false meaning that there is something in there, it will return your formula.
Let me know if that works.
Here is the formula that I use:
=IF(NETWORKDAYS($G7,$H7)>0, NETWORKDAYS($G7,$H7),"-")

Check if value of Cell is in another Sheet2.CellRange if yes, take the value of Sheet2.CellD position

OBS: im using OpenOffice, i cant use the "OpenOffice" tag, =|
i have this Sheet2:
and I'm planning to type the value of B4:B12 inside another Sheet
for example, i type in A1 the value 4, so it will fill the B with D4 and C with E4(from sourceSheet position)
Sheet1 that will get the value of D or E from Row where Sheet2.B is equal Sheet1.A
--A--B--C
1|4-D4--E4
2|
3|7-D7--E7
4|1-D1--E1
and i tried this:
LOOKUP(A1;Sheet2.B1:Sheet2.B12;Sheet2.D4:Sheet2.D12);
but its not getting the value, just return sometimes #NAME
I believe your ranges are written incorrectly.
First, Sheet2.B1:Sheet2.B12 should be Sheet2.B1:B12
Second, for the Lookup function, the searchtable and result table must be the same size (take a look at the online documentation for details).
Try this instead:
LOOKUP(A1;Sheet2.B1:B12;Sheet2.D1:D12);
Please try in B1 and copied across to C1, then both down to suit:
=IF(ISERROR(LOOKUP($A1;Sheet2.$B$4:$B$12;Sheet2.D$4:D$12));"";LOOKUP($A1;Sheet2.$B$4:$B$12;Sheet2.D$4:D$12))