CodyMonster
Board Regular
- Joined
- Sep 28, 2009
- Messages
- 159
A | B | C | D | E | F | G | H |
Reporting Date | Invoice ID | invoice payment id | invoice header id | invoice terms date | vendor number | po/non-po flag | supplier name |
23-Apr-20 | 1900057573_5430_2020_0001064077 | 1900057573_5430_2020 | 0001064077 | NON_PO | GT TRANSPORT 2012 CO LTD | ||
23-Apr-20 | 1900264963_6070_2020_0001058494 | 1900264963_6070_2020 | 0001058494 | NON_PO | NES GLOBAL TALENT RECRUITMENT SERVI | ||
23-Apr-20 | 0027002369_6400_2020_0005508065 | 0027002369_6400_2020_0005508065 | 4/16/2020 | 0005508065 | PO | LUSH (HEAT TREATMENT) LTD | |
23-Apr-20 | 1900004280_L410_2020_ | 1900004280_L410_2020 | 4/13/2020 | NON_PO | 0000315509 |
I'm getting the strangest result for the below nested if statement in "B". For some reason the statement doesn't pick up the supplier name if the vendor number "F" is blank.
I get D and the _ between the two cell references (D9 and H9) but not the number in column H.
=IF(AND(C9="",LEN(D9)<=20),D9&"_"&F9, IF(AND(C9="",F9=""),D9&"_"&H9,D9))
does anyone have an idea? I bet its something simple and I've been looking at this too long!