I have an invoice numbering in the format
SMGS/20-21/COU-07
SMGS/20-21/COU-08
SMGS/20-21/COU-09
SMGS/20-21/COU-10
SMGS/20-21/COU-11
When my cell A7 has SMGS/20-21/COU-11, how do I generate the next number as SMGS/20-21/COU-12 in B7 cell using Google Sheets formula?
Where the 20-21 year is also auto generated. After March 31, the year shall become 21-22.
I have tried with =split(B4,"-")
=IF(MONTH(TODAY())>3,YEAR(TODAY())&"-"&RIGHT(YEAR(TODAY())+1,2),YEAR(TODAY())-1&"-"& RIGHT(YEAR(TODAY()),2))
this displays 2020-21, But I need 20-21 .
In A8 enter:
=left(A7,15) & right(A7,2)+1
EDIT#1:
In A8 enter:
=left(A7,15) & mid(A7,16,99)+1
and copy downward!
Related
I have a spreadsheet I'm working on presently, and I need a formula that does the following:
I want E7 to add 7 days to D7 so 20/04/20 = 27/04/20. but if NA is entered in D7 i want E7 to show NA as well.
I have so far tried the following formula
=IFERROR(D7+7,"NA")
The above gets me close but it then shows the number 7 in all cells of E7 I don't want that to happen and want the formula to not do anything unless the cells of column D have a date entered into them
In E7 put this formula:
=IF(D7="","",IFERROR(D7+7,D7))
I need help with stopping Excel from updating formula after a criteria is matched. I have the following:
Cell A1 is =TODAY() cell
B1 is "Date Received"
Cell C1 is number of days open (contains the formula). This value is obtained by the following formula:
=IF(B1="","-",IF(NETWORKDAYS($B1,$A$1)>0,NETWORKDAYS($C1,$A$1),"-"))
This returns the number of days a sales quote has been open.
The second part is once the invoice has been done and now I have a second date to use.
Cell D1 is Date the invoice is completed Cell E1 is number of days taken to invoice (contains the formula)
This is obtained by the following formula:
=IF(NETWORKDAYS($B1,$D1)>0, NETWORKDAYS($B1,$D1),"-")
What I need is once Cell D1 is filled out that Excel freezes Cell C1 and not continue counting days between B1 and A1 as cell A1 will update each new day? Can this be done and how if so?
I was wondering if it's possible to use info from a cell in creating a formula. Here's the situation;
A1 = Date (01/01/17)
A2 = Month from that date (January)
I have different worksheets in the book for every month so for January the sheet is called January.
Is it possible to create a formula where I can reference a cell in a page that corresponds to the month in A2.
So for example in A3 the formula would be =January!A1
But instead of Jan I want it to be dynamic so it would change to any month depending on what I input in previous cells.
In A2 to get the month try
=TEXT(A1,"mmmm")
and then in A3
=INDIRECT(A2&"!A1")
or you can cut out A2 altogether and use just
=INDIRECT(TEXT(A1,"mmmm")&"!A1")
I am trying to find a formula on excel that will allow me to randomly select a cell between a range (this part I have found a formula for) and have the value pasted into another cell AND then have the cell next to the randomly selected cell's value also selected and pasted into a different cell.
Not sure if this makes sense so I will explain what I'm trying to do.
I have a column full of years and the adjacent column full of prices that correspond to each year. I want a year randomly selected and pasted into a cell lower down on the spreadsheet, and I want the corresponding price for this randomly selected year pasted next to this cell.
Thank you in advance!
Anna
Say the data is in A1 through B10
In D1 enter:
=INDEX(A1:A10,RANDBETWEEN(1,10))
and in E1 enter:
=VLOOKUP(D1,A1:B10,2,FALSE)
Another approach is to enter:
=RANDBETWEEN(1,10)
=INDIRECT("A" & C1)
=INDIRECT("B" & C1)
In C1 through E1
(Either approach will work if column A contains years rather than names)
Yet another approach is to enter:
=RANDBETWEEN(1,10)
=INDEX(A1:A10,C1)
=INDEX(B1:B10,C1)
In C1 through E1
I want to create a calendar in Excel with 2 sheets:
Actual monthly calendar
Display current week of the month AND cells displaying data accordingly
Task: I want to show the people who are working this week rather than the whole month.
I got the code for current week display:
=TEXT(TODAY()-WEEKDAY(TODAY(),3),"mmmm dd, yyyy")&" - "&TEXT(TODAY()-WEEKDAY(TODAY(),3)+6,"mmmm dd, yyyy")
So, this will show the current eeek starting on Monday and ending on Sunday (as I needed to display)
Now:
On sheet 2, I want to show ONLY the dates of week on the calendar based on this above calculation.
Match the week start date to a list of Mondays in a different tab, then display the name of the person on the cells below the matching date (this is VLOOKUP, HLOOKUP)
Have this automatically updated every week with correct info
Is it possible? How?
I am not a coder at all.
In a blank sheet (Sheet2):
A2 =TODAY()
A4 delta
A5 to A19 consecutive values from -7 to 7
B4 Today+delta
C4 Weeknum
D4 Weekday
E4 Key
F4 Today+delta (again)
B5 =$A$2+A5 and then replicate this formula until B19
C5 =WEEKNUM(B5)
D5 =WEEKDAY(B5)
E5 =CONCATENATE(C5,"-",D5)
F5 =B5
Now extend those formulas (B5:F5) until row 19 (B19:F19)
In another blank sheet (Sheet1)
In the firs row put your formula
A2 to G2 consecutive values from 1 to 7
A3 =CONCATENATE(WEEKNUM(TODAY()),"-",A2)
Extend that formula in the range A3:G3
A4 to G4 Weekday names from Monday to Sunday
A5 =VLOOKUP(A$3, Sheet2!$E$5:$F$19, 2, 0)
Extend that formula in the range A5:G5
Until now, you should have Sheet1 with the requirement of the week showing every day of the current week. If you need a different week, just change the value in Sheet2!A2 adding or substracting days.