Excel Formula Help

MBRGriffin

New Member
Joined
Nov 11, 2014
Messages
17
Hello...I have 3 formulas that I am having trouble getting to do what I want that have been in use for quite some time. Any quick assistance would be very much appreciated!

1- I am trying to get the last populated cell value in a series of non consecutive cells in a row to return. The formula I wrote below works to return the single value (which is all they have been to this point), however, now I need it to accommodate a double digit number. (Note, there will actually be about 25 cells in each row for this formula to look through)

=if(iserr(mid((ad23&aj23&ap23),len(ad23&aj23&ap23),1)),"",mid((ad23&aj23&ap23),LEN(ad23,aj23,ap23),1))

2 - I have a date field that is returning the 1/0/1900 date, which I know how to adjust in the custom cell formatting to show as blank, but I also have a formula in these cells adding 14 days or subtracting 7 days, which then it is no longer considered '0'. how can I make this show as a blank when the date value is actually '0' but my formula is making it return with +14 (b15 is where my +14 is coming from) or -7?

=if($f19="Supplier",if(t19>1,t19-7,""),"") --returns 1/7/1900
=if($j19>0,if(n19="1",0,if(n19="4",0,if(o19>p19,0,max($p19+$b$15,$Q19,R19)))),0) - returns 1/14/1900

3 - I am counting the number of times in a column that 'NIS' is returned.... but I now have instances where the NIS I am clearing in conditional formatting if it is not applicable because it is an internal document but it is still being counted. what do I need to adjust to make this work?
My count if formula is this: =countif($x$19:$x$298,"NIS)
Here Is the formula in the x column: =if($k19=0,0,if($o19=0,NS",if($n19="1","APPROVED",if($n19="2"RESUBMIT",if($n19="3","RESUBMIT",if($n9="4",INFORMATION",""))))))
and my conditional formatting in x column says this: =$I19="Internal" format as white.

Any help is very much appreciated!!!
 
Last edited:
WestMan, if you have a moment I have one additional question as I am getting my file into production.

I needed to insert a few extra columns so the column of where this formula is returning the most recent Rev is now 'P' and the Rev columns are still 6 apart starting in AJ:FX.

This is the formula you provided (which worked perfectly when the formula column was in 'L' and Rev columns were in AF:FT :
=IF(SUM(--(MOD(COLUMN(AF19:FT19),6)=2)*(AF19:FT19=""))=25,"",INDEX(AF19:FT19,MAX((MOD(COLUMN(AF19:FT19),6)=2)*(AF19:FT19<>"")*(COLUMN(AF19:FT19)- COLUMN(AF:AF)))+1))

I changed it to the following, adjusting the column references and the Mod # to 1 (31/6 = remainder of 1)
=IF(SUM(--(MOD(COLUMN(AJ19:FX19),6)=1)*(AJ19:FX19=""))=25,"",INDEX(AJ19:FX19,MAX((MOD(COLUMN(AJ19:FX19),6)=1)*(AJ19:FX19<>"")*(COLUMN(AJ19:FX19)- COLUMN(AJ:AJ)))+1))


Her is a small sample of data. Row 19 is what is it is doing now incorrectly since I added some columns. Rows 20-22 are what I need, having Column P return the last populated Rev in a row so we can see a documents most recent Revision #. If you have a chance, please let me know what else I am missing to change besides the column references and the mod # from 2 to 1. THANKS!

[TABLE="width: 970"]
<tbody>[TR]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: transparent"]P[/TD]
[TD="width: 66, bgcolor: transparent"]AI[/TD]
[TD="width: 64, bgcolor: yellow"]AJ[/TD]
[TD="width: 64, bgcolor: transparent"]AK[/TD]
[TD="width: 66, bgcolor: transparent"]AL[/TD]
[TD="width: 64, bgcolor: transparent"]AM[/TD]
[TD="width: 66, bgcolor: transparent"]AN[/TD]
[TD="width: 66, bgcolor: transparent"]AO[/TD]
[TD="width: 64, bgcolor: yellow"]AP[/TD]
[TD="width: 66, bgcolor: transparent"]AQ[/TD]
[TD="width: 64, bgcolor: transparent"]AR[/TD]
[TD="width: 64, bgcolor: transparent"]AS[/TD]
[TD="width: 64, bgcolor: transparent"]AT[/TD]
[TD="width: 64, bgcolor: transparent"]AU[/TD]
[TD="width: 64, bgcolor: yellow"]AV[/TD]
[TD="width: 64, bgcolor: transparent"]AW[/TD]
[TD="width: 64, bgcolor: transparent"]AX[/TD]
[TD="width: 64, bgcolor: transparent"]AY[/TD]
[TD="width: 64, bgcolor: transparent"]AZ[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="width: 64, bgcolor: #003150"]Current
Revision
[/TD]
[TD="width: 66, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 64, bgcolor: #003150"]Rev.[/TD]
[TD="width: 64, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 66, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 64, bgcolor: #003150"]Status[/TD]
[TD="width: 66, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[TD="width: 66, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 64, bgcolor: #003150"]Rev.[/TD]
[TD="width: 66, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 64, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 64, bgcolor: #003150"]Status[/TD]
[TD="width: 64, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[TD="width: 64, bgcolor: #003150"]Received
from
SUPPLIER
[/TD]
[TD="width: 64, bgcolor: #003150"]Rev.[/TD]
[TD="width: 64, bgcolor: #003150"]Submitted
to
Customer
[/TD]
[TD="width: 64, bgcolor: #003150"]Returned
from
Customer
[/TD]
[TD="width: 64, bgcolor: #003150"]Status[/TD]
[TD="width: 64, bgcolor: #003150"]Mark-Ups
to
SUPPLIER
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]19[/TD]
[TD="width: 64, bgcolor: transparent"]41976[/TD]
[TD="bgcolor: #B8CCE4"]12/2/2014[/TD]
[TD="bgcolor: #B8CCE4"]A[/TD]
[TD="bgcolor: #B8CCE4"]12/3/2014[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #B8CCE4"]4[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]20[/TD]
[TD="width: 64, bgcolor: transparent"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]21[/TD]
[TD="width: 64, bgcolor: transparent"]A[/TD]
[TD="bgcolor: #B8CCE4"]12/2/2014[/TD]
[TD="bgcolor: #B8CCE4"]A[/TD]
[TD="bgcolor: #B8CCE4"]12/3/2014[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #B8CCE4"]4[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]22[/TD]
[TD="width: 64, bgcolor: transparent"]1[/TD]
[TD="bgcolor: #B8CCE4"]12/2/2014[/TD]
[TD="bgcolor: #B8CCE4"]A[/TD]
[TD="bgcolor: #B8CCE4"]12/3/2014[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #B8CCE4"]4[/TD]
[TD="bgcolor: #B8CCE4"]12/4/2014[/TD]
[TD="bgcolor: #DCE6F1"]12/5/2014[/TD]
[TD="bgcolor: #DCE6F1"]1[/TD]
[TD="bgcolor: #DCE6F1"]12/6/2014[/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #DCE6F1"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[TD="bgcolor: #B8CCE4"][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,223,262
Messages
6,171,080
Members
452,377
Latest member
bradfordsam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top