Based on one input value,populate table - excel

How can i achieve this, I want the orange table to be auto generated, based on the value in cell "F5" i.e minutes earned more than : '410'....
F5=410
I tried using index, match but couldn't achieve.Can someone help.

Put this is E8, drag over to F8, and then drag both down as far as needed.
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($C$6:$C$21)/($C$6:$C$21>=$F$5),ROW()-7),1),"")

=IFERROR(IF(VLOOKUP($E10,$B$6:$C$21,1,FALSE)<$F$5,"",VLOOKUP($E10,$B$6:$C$21,1,FALSE)),0)
But if you want to display only the one matching the criteria within continuous rows, you'll need at least a column helper storing the row coming from MATCH.

You could add a helper-column and put:
=SMALL(IF(C:C<=$F$5,ROW(C:C)),ROW())
then push ctrl+shift+enter and drag down in column D. Then use =INDEX(B:D,D2,1) add IFERRORto avoid #errors

Related

Multiple Values using single Criteria

I need help with my office work.
I am trying to look for a formula where I have one database that contains the list of all supervisors and all their analyst (15 per team).
I have tried
=IFERROR(INDEX(Database!$A$1:$A$350,SMALL(IF($F$7=Database!$I$1:$I$350,ROW(Database!$A$1:$A$350)-1,""),ROW()-1)),"")
What I am trying to do is I want to do a lookup using the supervisors list and employee id list and it will show all their emp id on the yellow part.
I have updated a screenshot of the idea,
If your data is been set up in two columns, you might look into use of SMALL. It's an array solution though:
Google Spreadsheets:
Formula in C2:
=ARRAYFORMULA(INDEX($F$1:$F$27,SMALL(($G$1:$G$27=$C$1)*ROW($G$1:$G$27),COUNTIF($G$1:$G$27,"<>"&C$1)+ROW(A1))))
Excel:
Same formula (almost) but entered as array using CtrlShiftEnter:
=INDEX($F$1:$F$27,SMALL(($G$1:$G$27=$C$1)*ROW($G$1:$G$27),COUNTIF($G$1:$G$27,"<>"&C$1)+ROW(A1)))
You can replicate the formula for C17 but just need to edit the cell reference to C17. Drag the formula down.
So, have a look at this:
(Note, submitted before the source data structure was evident, but left as it may be a helpful solution for others...)
Cell B2 is a drop down from data validation to select the supervisor you want to work with.
Drag the choose down for the number you need.
paste in C2 cell:
=FILTER(F:F, G:G=C1)
paste in C17 cell:
=FILTER(F:F, G:G=C16)
also you could just use:
=FILTER(F:F, G:G=INDIRECT("C"&ROW()-1))

what formula is needed to count two specific cells that already include a formula

Afternoon all,
I am trying to create an enquiry managment spreadsheet that records all incoming enquires and what has been done to date.
I am trying to get a cell to count how many "New" enquiries David has.
Daivds name is populated via a drop down list and the number of enquiries is counted via the text "NEW" selected from a drop down list.
The formula as I understand it should be along the lines of
=COUNTIF(Enquiries!E4:E309,"NEW")=IF(Enquiries!B4:B309,"DAVID")
But i cannot for the life of me get it to work!!
You should use the formula COUNTIFS() which allows to place more than one condition to do the count. As mentioned in the comments by BigBen, the formula should be as follows:
=COUNTIFS(Enquiries!E4:E309,"NEW",Enquiries!B4:B309,"DAVID")
If you want to use the formula for different people, which i guess you want, you can change "DAVID" for cell E$2, and block the cells by using $ symbol, so the formula would be like:
=COUNTIFS(Enquiries!$E$4:$E$309,"NEW",Enquiries!$B$4:$B$309,E$2)
and then drag the formula horizontally.
You can find more help about the formula on this link

Read value on Sheet1 from Sheet2 using vlookup

I have the following on Sheet1:
Then on Sheet2, I have data. Following is the image.
I want to read the today's and tomorrow's for all the fruits from Sheet2 to Sheet1
I tried vlookup, but it didn't give me a right answer. It was confusing. I also tried to incorporate an if statement with the vlookup, but that made it more confusing.
If you data is consistent, you can use this formula =IF(C$2="Today",INDEX(Sheet2!$D$3:$D$800,MATCH($B3,Sheet2!$B$3:$B$800,0)),INDEX(Sheet2!$D$3:$D$800,MATCH($B3,Sheet2!$B$3:$B$800,0)+1)) in cell C3. drag formula below whole table...
Maybe there is way to match with blank cells in between, but the best practice is to fill out those blanks to save your time and make the formula clean, moreover, it is very easy with this trick:
First, highlight the column (ie. B1 to B6), and then go Home > Editing > Find & Select > Go To Special > Blanks > OK, =, upper arrow key, Ctrl + Enter. This way it will fill out all the blanks with the most available text in it.
Then you can perform this easy formula to do the subtotal task:
=SUMIFS($I$3:$I$13,$G$3:$G$13,$B3,$H$3:$H$13,C$2)
Please note that I put everything in the same tab to show you how this is being done. You should change those ranges accordingly based on your data setup. This way, you can have more data and different criteria be added on and still get the correct answer as I have shown you in the above screenshot.

Excel Fill alphanumeric values

I would like to fill A000001, A000002, till A100000.
Now do it by dragging the fill handle.
I also tried to fill using Step Value and Stop Value. It works for 1,2,3 to 100000. But it does not work for alphanumeric filling like A000001, A000002 etc
Use the step value method to generate 1 to 100000 in column A (from cell A1). And paste the below formula in cell B1,
=IF(LEN(A1)=1,"A00000"&A1,IF(LEN(A1)=2,"A0000"&A1,IF(LEN(A1)=3,"A000"&A1,IF(LEN(A1)=4,"A00"&A1,IF(LEN(A1)=5,"A0"&A1,IF(LEN(A1)=6,"A"&A1))))))
Just double click the fill handle in B1 to generate for the entire range. This is a simpler way of doing this. Hope this helps.
The standard method is Create custom list but since you are looking for a long one so practically impossible,, another is Flash Fill,, and older one is write A000001 in cell A000002 in below cell select both drag it till you need.
I know its too late, however I can provide a tip it may be helpful to someone looking for same issue.
if you want fill the alpha numeric series by dragging the fill handle, just need to add a simple formula in the first row:
="A"&TEXT(ROWS($1:1),"000000")
In the above formula: the text “A” is constant, you can change them to your needed text, and the number “000000” is the variable which will be increased by dragging the fill handle.
Also if you want to add a string at end , you just need to change the formula to this,
="A"&TEXT(ROWS($1:1),"000000")&"-VAL"
Then it will give you something like this,
A000001-VAL, A000002-VAL, A000003-VAL.....
You can also change the starting number too.
Regards

Place Subtotal value in all cells in group

I have a requirement where i need to enter the value of a SubTotal in each row for the corresponding group. Below is a snapshot of the subtotals in in Column Q and this value manualy entered by me in Column M. I'm happy to create a Macro to do this or a Formula, but i can not seem to think of the logic on how to achieve this. Can anyone advise please.
Many thanks
Put the following Array Formula in M5:
=IF(A5<>"",INDEX($Q5:$Q$1000,MATCH(0,IF($A5:$A$1000="",0,1),0)),"")
Press Ctrl-Shift-Enter instead of Enter or Tab to exit edit mode. Then copy down.
This formula worked for me:
=IF(ISBLANK(A5),"",IF(OR(ISBLANK(A4),A4="Ship-to Pt"),INDEX(Q:Q,MATCH(A5,A:A,0)+COUNTIF(A:A,A5)),M4))
Drag down the dataset.
You can set specific row limits if desired.

Resources